Class OtherASN1EncoderDecoder

java.lang.Object
com.isode.dsapi.encdec.OtherASN1EncoderDecoder

public class OtherASN1EncoderDecoder extends Object
This class contains ASN1 Encoders and Decoders for the types that are not supported by Bouncy castle. For Example, Encoder/Decoder for ORAddress is not supported by Bouncy castle so methods for encoding and decoding ORAddress have been defined here.

The following steps will be done in order to add support for new type:

  • 1. Create an OTHER_NAM_TYPE enum constant in class OtherName
  • 2. Define encoder and decoder methods for this types
  • 3. Make sure that they get called for encoding/decoding of this type by adding the handing in the function getDsapiAttributeConverter() (see the example for OR Address)
  • Author:
    gb
    • Constructor Details

      • OtherASN1EncoderDecoder

        public OtherASN1EncoderDecoder()
    • Method Details

      • getDsapiAttributeConverter

        public static CryptoUtils.DsapiAttributeConverter getDsapiAttributeConverter()
        Get the Dsapi Attribute Converter which will convert some attributes into string from ASN1 and vice versa
        Returns:
        DSAPI Attribute Converter
        Since:
        14.6