Package org.apache.directory.shared.asn1.der

Examples of org.apache.directory.shared.asn1.der.ASN1InputStream.readObject()


    public Encodable decode( byte[] encodedPrivatePart ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( encodedPrivatePart );

        DERApplicationSpecific app = ( DERApplicationSpecific ) ais.readObject();

        DERSequence privatePart = ( DERSequence ) app.getObject();

        return decodePrivatePartSequence( privatePart );
    }
View Full Code Here


     */
    public static EncryptionKey decode( byte[] encodedEncryptionKey ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( encodedEncryptionKey );

        DERSequence sequence = ( DERSequence ) ais.readObject();

        return decode( sequence );
    }


View Full Code Here

     */
    public ApplicationRequest decode( byte[] encodedAuthHeader ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( encodedAuthHeader );

        DERApplicationSpecific app = ( DERApplicationSpecific ) ais.readObject();

        DERSequence apreq = ( DERSequence ) app.getObject();

        return decodeApplicationRequestSequence( apreq );
    }
View Full Code Here

     */
    public KdcReply decode( ByteBuffer in ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( in );

        DERApplicationSpecific app = ( DERApplicationSpecific ) ais.readObject();

        DERSequence kdcreq = ( DERSequence ) app.getObject();

        return decodeKdcReplySequence( kdcreq );
    }
View Full Code Here

     */
    public ErrorMessage decode( ByteBuffer in ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( in );

        DERApplicationSpecific app = ( DERApplicationSpecific ) ais.readObject();

        DERSequence errorMessage = ( DERSequence ) app.getObject();

        return decodeErrorMessageSequence( errorMessage );
    }
View Full Code Here

     */
    public ApplicationReply decode( byte[] encodedAuthHeader ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( encodedAuthHeader );

        DERApplicationSpecific app = ( DERApplicationSpecific ) ais.readObject();

        DERSequence apreq = ( DERSequence ) app.getObject();

        return decodeApplicationRequestSequence( apreq );
    }
View Full Code Here

     */
    public static EncryptedData decode( byte[] encodedEncryptedData ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( encodedEncryptedData );

        DERSequence sequence = ( DERSequence ) ais.readObject();

        return decode( sequence );
    }


View Full Code Here

     */
    public KdcRequest decode( ByteBuffer in ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( in );

        DERApplicationSpecific app = ( DERApplicationSpecific ) ais.readObject();

        DERSequence kdcreq = ( DERSequence ) app.getObject();

        return decodeKdcRequestSequence( kdcreq );
    }
View Full Code Here

     */
    public ChangePasswordData decodeChangePasswordData( byte[] encodedChangePasswdData ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( encodedChangePasswdData );

        DERSequence sequence = ( DERSequence ) ais.readObject();

        return decodeChangePasswdData( sequence );
    }


View Full Code Here

    public Encodable decode( byte[] encodedAuthenticator ) throws IOException
    {
        ASN1InputStream ais = new ASN1InputStream( encodedAuthenticator );

        DERApplicationSpecific app = ( DERApplicationSpecific ) ais.readObject();

        DERSequence sequence = ( DERSequence ) app.getObject();

        return decode( sequence );
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.