Search in sources :

Example 41 with DerValue

use of org.mozilla.jss.netscape.security.util.DerValue in project jss by dogtagpki.

the class CertificateIssuerUniqueIdentity method decode.

/**
 * Decode the identity in DER form from the stream.
 *
 * @param in the InputStream to unmarshal the contents from.
 * @exception IOException on errors.
 */
@Override
public void decode(InputStream in) throws IOException {
    DerValue val = new DerValue(in);
    id = new UniqueIdentity(val);
}
Also used : DerValue(org.mozilla.jss.netscape.security.util.DerValue)

Example 42 with DerValue

use of org.mozilla.jss.netscape.security.util.DerValue in project jss by dogtagpki.

the class CertificateSubjectName method decode.

/**
 * Decode the name in DER form from the stream.
 *
 * @param in the InputStream to marshal the contents from.
 * @exception IOException on errors.
 */
@Override
public void decode(InputStream in) throws IOException {
    DerValue derVal = new DerValue(in);
    dnName = new X500Name(derVal);
}
Also used : DerValue(org.mozilla.jss.netscape.security.util.DerValue)

Example 43 with DerValue

use of org.mozilla.jss.netscape.security.util.DerValue in project jss by dogtagpki.

the class CertificateSubjectUniqueIdentity method decode.

/**
 * Decode the identity in DER form from the stream.
 *
 * @param in the InputStream to unmarshal the contents from.
 * @exception IOException on errors.
 */
@Override
public void decode(InputStream in) throws IOException {
    DerValue val = new DerValue(in);
    id = new UniqueIdentity(val);
}
Also used : DerValue(org.mozilla.jss.netscape.security.util.DerValue)

Example 44 with DerValue

use of org.mozilla.jss.netscape.security.util.DerValue in project jss by dogtagpki.

the class CertificateVersion method decode.

/**
 * Decode the CertificateVersion period in DER form from the stream.
 *
 * @param in the InputStream to unmarshal the contents from.
 * @exception IOException on errors.
 */
@Override
public void decode(InputStream in) throws IOException {
    DerValue derVal = new DerValue(in);
    construct(derVal);
}
Also used : DerValue(org.mozilla.jss.netscape.security.util.DerValue)

Example 45 with DerValue

use of org.mozilla.jss.netscape.security.util.DerValue in project jss by dogtagpki.

the class ChallengePassword method decode.

@Override
public void decode(InputStream in) throws CertificateException, IOException {
    DerValue derVal = new DerValue(in);
    construct(derVal);
}
Also used : DerValue(org.mozilla.jss.netscape.security.util.DerValue)

Aggregations

DerValue (org.mozilla.jss.netscape.security.util.DerValue)70 IOException (java.io.IOException)31 DerInputStream (org.mozilla.jss.netscape.security.util.DerInputStream)20 DerOutputStream (org.mozilla.jss.netscape.security.util.DerOutputStream)8 ObjectIdentifier (org.mozilla.jss.netscape.security.util.ObjectIdentifier)8 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)5 ByteBuffer (java.nio.ByteBuffer)4 CharBuffer (java.nio.CharBuffer)4 CharacterCodingException (java.nio.charset.CharacterCodingException)4 CharsetEncoder (java.nio.charset.CharsetEncoder)4 MessageDigest (java.security.MessageDigest)4 CRLException (java.security.cert.CRLException)4 BitArray (org.mozilla.jss.netscape.security.util.BitArray)4 AuthorityKeyIdentifierExtension (org.mozilla.jss.netscape.security.x509.AuthorityKeyIdentifierExtension)4 KeyIdentifier (org.mozilla.jss.netscape.security.x509.KeyIdentifier)4 ByteArrayOutputStream (java.io.ByteArrayOutputStream)3 InvalidKeyException (java.security.InvalidKeyException)3 BigInt (org.mozilla.jss.netscape.security.util.BigInt)3 GeneralName (org.mozilla.jss.netscape.security.x509.GeneralName)3 CertificateException (java.security.cert.CertificateException)2