Class DERObjectIdentifier

    • Field Detail

      • identifier

        java.lang.String identifier
    • Constructor Detail

      • DERObjectIdentifier

        DERObjectIdentifier​(byte[] bytes)
      • DERObjectIdentifier

        public DERObjectIdentifier​(java.lang.String identifier)
    • Method Detail

      • getInstance

        public static DERObjectIdentifier getInstance​(java.lang.Object obj)
        return an OID from the passed in object
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.
      • getInstance

        public static DERObjectIdentifier getInstance​(ASN1TaggedObject obj,
                                                      boolean explicit)
        return an Object Identifier from a tagged object.
        Parameters:
        obj - the tagged object holding the object we want
        explicit - true if the object is meant to be explicitly tagged false otherwise.
        Throws:
        java.lang.IllegalArgumentException - if the tagged object cannot be converted.
      • getId

        public java.lang.String getId()
      • writeField

        private void writeField​(java.io.OutputStream out,
                                long fieldValue)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeField

        private void writeField​(java.io.OutputStream out,
                                java.math.BigInteger fieldValue)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isValidIdentifier

        private static boolean isValidIdentifier​(java.lang.String identifier)