Class TrustedAuthority


  • public class TrustedAuthority
    extends java.lang.Object
    • Field Detail

      • identifierType

        protected short identifierType
      • identifier

        protected java.lang.Object identifier
    • Constructor Detail

      • TrustedAuthority

        public TrustedAuthority​(short identifierType,
                                java.lang.Object identifier)
    • Method Detail

      • getIdentifierType

        public short getIdentifierType()
      • getIdentifier

        public java.lang.Object getIdentifier()
      • getCertSHA1Hash

        public byte[] getCertSHA1Hash()
      • getKeySHA1Hash

        public byte[] getKeySHA1Hash()
      • getX509Name

        public org.bouncycastle.asn1.x500.X500Name getX509Name()
      • encode

        public void encode​(java.io.OutputStream output)
                    throws java.io.IOException
        Encode this TrustedAuthority to an OutputStream.
        Parameters:
        output - the OutputStream to encode to.
        Throws:
        java.io.IOException
      • parse

        public static TrustedAuthority parse​(java.io.InputStream input)
                                      throws java.io.IOException
        Parse a TrustedAuthority from an InputStream.
        Parameters:
        input - the InputStream to parse from.
        Returns:
        a TrustedAuthority object.
        Throws:
        java.io.IOException
      • checkCorrectType

        protected void checkCorrectType​(short expectedIdentifierType)
      • isCorrectType

        protected static boolean isCorrectType​(short identifierType,
                                               java.lang.Object identifier)
      • isSHA1Hash

        protected static boolean isSHA1Hash​(java.lang.Object identifier)