Examples of ETypeInfoEntry


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

        // Update the parent
        eTypeInfoContainer.updateParent();

        // Store the ETypeInfoEntry in the container
        ETypeInfoEntry etypeInfoEntry = etypeInfoEntryContainer.getETypeInfoEntry();
        eTypeInfoContainer.addEtypeInfoEntry( etypeInfoEntry );

        if ( IS_DEBUG )
        {
            LOG.debug( "ETYPE-INFO-ENTRY added : {}", etypeInfoEntry );
View Full Code Here

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

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

        EncryptionType etype = null;
        ETypeInfoEntry etypeInfoEntry = eTypeInfoEntryContainer.getETypeInfoEntry();

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

            etypeInfoEntry.setEType( etype );

            if ( IS_DEBUG )
            {
                LOG.debug( "etype : " + etype );
            }
View Full Code Here

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

            de.printStackTrace();

            fail( de.getMessage() );
        }

        ETypeInfoEntry etypeInforEntry = container.getETypeInfoEntry();

        assertEquals( EncryptionType.DES3_CBC_MD5, etypeInforEntry.getEType() );
        assertTrue( Arrays.equals( Strings.getBytesUtf8( "1234" ), etypeInforEntry.getSalt() ) );

        ByteBuffer bb = ByteBuffer.allocate( etypeInforEntry.computeLength() );

        try
        {
            bb = etypeInforEntry.encode( bb );

            // Check the length
            assertEquals( 0x0F, bb.limit() );

            String encodedPdu = Strings.dumpBytes( bb.array() );
View Full Code Here

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

            de.printStackTrace();

            fail( de.getMessage() );
        }

        ETypeInfoEntry etypeInforEntry = container.getETypeInfoEntry();

        assertEquals( EncryptionType.DES3_CBC_MD5, etypeInforEntry.getEType() );
        assertNull( etypeInforEntry.getSalt() );

        ByteBuffer bb = ByteBuffer.allocate( etypeInforEntry.computeLength() );

        try
        {
            bb = etypeInforEntry.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.ETypeInfoEntry

            de.printStackTrace();

            fail( de.getMessage() );
        }

        ETypeInfoEntry etypeInforEntry = container.getETypeInfoEntry();

        assertEquals( EncryptionType.DES3_CBC_MD5, etypeInforEntry.getEType() );
        assertNull( etypeInforEntry.getSalt() );

        ByteBuffer bb = ByteBuffer.allocate( etypeInforEntry.computeLength() );

        try
        {
            bb = etypeInforEntry.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.ETypeInfoEntry

            de.printStackTrace();

            fail( de.getMessage() );
        }

        ETypeInfoEntry etypeInforEntry = container.getETypeInfoEntry();

        assertEquals( EncryptionType.UNKNOWN, etypeInforEntry.getEType() );
        assertNull( etypeInforEntry.getSalt() );

        ByteBuffer bb = ByteBuffer.allocate( etypeInforEntry.computeLength() );

        try
        {
            bb = etypeInforEntry.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.ETypeInfoEntry

        for ( EncryptionType encryptionType : encryptionTypes )
        {
            if ( !isNewEtype )
            {
                ETypeInfoEntry etypeInfoEntry = new ETypeInfoEntry( encryptionType, null );
                eTypeInfo.addETypeInfoEntry( etypeInfoEntry );
            }

            ETypeInfo2Entry etypeInfo2Entry = new ETypeInfo2Entry( encryptionType );
            eTypeInfo2.addETypeInfo2Entry( etypeInfo2Entry );
View Full Code Here

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

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

        ETypeInfoEntry etypeInfoEntry = new ETypeInfoEntry();
        eTypeInfoEntryContainer.setETypeInfoEntry( etypeInfoEntry );

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

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

        for ( EncryptionType encryptionType : encryptionTypes )
        {
            if ( !isNewEtype )
            {
                ETypeInfoEntry etypeInfoEntry = new ETypeInfoEntry( encryptionType, null );
                eTypeInfo.addETypeInfoEntry( etypeInfoEntry );
            }

            ETypeInfo2Entry etypeInfo2Entry = new ETypeInfo2Entry( encryptionType );
            eTypeInfo2.addETypeInfo2Entry( etypeInfo2Entry );
View Full Code Here

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

        // Update the parent
        eTypeInfoContainer.updateParent();

        // Store the ETypeInfoEntry in the container
        ETypeInfoEntry etypeInfoEntry = etypeInfoEntryContainer.getETypeInfoEntry();
        eTypeInfoContainer.addEtypeInfoEntry( etypeInfoEntry );

        if ( IS_DEBUG )
        {
            LOG.debug( "ETYPE-INFO-ENTRY added : {}", etypeInfoEntry );
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.