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

Examples of org.apache.directory.shared.asn1.der.ASN1InputStream


     * @return The {@link ApplicationRequest}.
     * @throws IOException
     */
    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


     * @return The {@link KdcReply}.
     * @throws IOException
     */
    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

     * @return The {@link ErrorMessage}.
     * @throws IOException
     */
    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

     * @return The {@link ApplicationReply}.
     * @throws IOException
     */
    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

     * @return The {@link EncryptedData}.
     * @throws IOException
     */
    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

     * @return The {@link KdcRequest}.
     * @throws IOException
     */
    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

     * @return The {@link ChangePasswordData}.
     * @throws IOException
     */
    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

     * @return The {@link ChangePasswordData}.
     * @throws IOException
     */
    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 ExtendedResponse extended( String oid, byte[] value ) throws LdapException
    {
        try
        {
            return extended( new Oid( oid ), value );
        }
        catch ( DecoderException e )
        {
            String msg = "Failed to decode the OID " + oid;
            LOG.error( msg );
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.asn1.der.ASN1InputStream

Copyright © 2018 www.massapicom. 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.