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

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


    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 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

                case 2:
                    DERBitString apOptions = ( DERBitString ) derObject;
                    authHeader.setApOptions( new ApOptions( apOptions.getOctets() ) );
                    break;
                case 3:
                    DERApplicationSpecific tag3 = ( DERApplicationSpecific ) derObject;
                    authHeader.setTicket( TicketDecoder.decode( tag3 ) );
                    break;
                   
                case 4:
                    DERSequence tag4 = ( DERSequence ) derObject;
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

                    DERSequence tag4 = ( DERSequence ) derObject;
                    modifier.setPrincipalName( PrincipalNameDecoder.decode( tag4 ) );
                    break;
                   
                case 5:
                    DERApplicationSpecific tag5 = ( DERApplicationSpecific ) derObject;
                    ticket = TicketDecoder.decode( tag5 );
                    break;
                   
                case 6:
                    DERSequence tag6 = ( DERSequence ) derObject;
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 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 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

     */
    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.DERApplicationSpecific

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.