Examples of ETypeInfo2Entry


Examples of org.apache.directory.shared.kerberos.components.ETypeInfo2Entry

            de.printStackTrace();
           
            fail( de.getMessage() );
        }

        ETypeInfo2Entry etypeInfo2Entry = container.getETypeInfo2Entry();
       
        assertEquals( EncryptionType.DES3_CBC_MD5, etypeInfo2Entry.getEType() );
        assertNull( etypeInfo2Entry.getSalt() );
        assertNull( etypeInfo2Entry.getS2kparams() );
       
        ByteBuffer bb = ByteBuffer.allocate( etypeInfo2Entry.computeLength() );
       
        try
        {
            bb = etypeInfo2Entry.encode( bb );
   
            // Check the length
            assertEquals( 0x07, bb.limit() );
   
            String encodedPdu = Strings.dumpBytes(bb.array());
View Full Code Here

Examples of org.apache.directory.shared.kerberos.components.ETypeInfo2Entry

            de.printStackTrace();
           
            fail( de.getMessage() );
        }

        ETypeInfo2Entry etypeInfo2Entry = container.getETypeInfo2Entry();
       
        assertEquals( EncryptionType.UNKNOWN, etypeInfo2Entry.getEType() );
        assertNull( etypeInfo2Entry.getSalt() );
        assertNull( etypeInfo2Entry.getS2kparams() );
       
        ByteBuffer bb = ByteBuffer.allocate( etypeInfo2Entry.computeLength() );
       
        try
        {
            bb = etypeInfo2Entry.encode( bb );
   
            // Check the length
            assertEquals( 0x07, bb.limit() );
   
            String encodedPdu = Strings.dumpBytes(bb.array());
View Full Code Here

Examples of org.apache.directory.shared.kerberos.components.ETypeInfo2Entry

            {
                ETypeInfoEntry etypeInfoEntry = new ETypeInfoEntry( encryptionType, null );
                eTypeInfo.addETypeInfoEntry( etypeInfoEntry );
            }

            ETypeInfo2Entry etypeInfo2Entry = new ETypeInfo2Entry( encryptionType );
            eTypeInfo2.addETypeInfo2Entry( etypeInfo2Entry );
        }

        byte[] encTypeInfo = null;
        byte[] encTypeInfo2 = null;
View Full Code Here

Examples of org.apache.directory.shared.kerberos.components.ETypeInfo2Entry

            // This will generate a PROTOCOL_ERROR
            throw new DecoderException( I18n.err( I18n.ERR_04067 ) );
        }

        ETypeInfo2Entry etypeInfo2Entry = new ETypeInfo2Entry();
        eTypeInfo2EntryContainer.setETypeInfo2Entry( etypeInfo2Entry );

        if ( IS_DEBUG )
        {
            LOG.debug( "ETYPE-INFO2-ENTRY created" );
View Full Code Here

Examples of org.apache.directory.shared.kerberos.components.ETypeInfo2Entry

     * {@inheritDoc}
     */
    public void action( ETypeInfo2EntryContainer eTypeInfo2EntryContainer ) throws DecoderException
    {
        TLV tlv = eTypeInfo2EntryContainer.getCurrentTLV();
        ETypeInfo2Entry etypeInfo2Entry = eTypeInfo2EntryContainer.getETypeInfo2Entry();

        // The Length may be null
        if ( tlv.getLength() != 0 )
        {
            Value value = tlv.getValue();

            // The encrypted data may be null
            if ( value.getData() != null )
            {
                String salt = Strings.utf8ToString(value.getData());
                etypeInfo2Entry.setSalt( salt );
            }
        }

        if ( IS_DEBUG )
        {
            LOG.debug( "salt : {}", etypeInfo2Entry.getSalt() );
        }

        // We can end here
        eTypeInfo2EntryContainer.setGrammarEndAllowed( true );
    }
View Full Code Here

Examples of org.apache.directory.shared.kerberos.components.ETypeInfo2Entry

        // The etype is an integer
        Value value = tlv.getValue();

        EncryptionType etype = null;
        ETypeInfo2Entry etypeInfo2Entry = eTypeInfo2EntryContainer.getETypeInfo2Entry();

        try
        {
            int eType = IntegerDecoder.parse( value );
            etype = EncryptionType.getTypeByValue( eType );

            etypeInfo2Entry.setEType( etype );

            if ( IS_DEBUG )
            {
                LOG.debug( "etype : " + etype );
            }
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.