Package org.apache.directory.shared.kerberos.components

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


     * {@inheritDoc}
     */
    @Override
    protected void setIntegerValue( int value, HostAddressContainer hostAddressContainer )
    {
        HostAddress hostAddressData = hostAddressContainer.getHostAddress();

        HostAddrType hostAddrType = HostAddrType.getTypeByOrdinal( value );
        hostAddressData.setAddrType( hostAddrType );

        if ( IS_DEBUG )
        {
            LOG.debug( "addr-type : {}", hostAddrType );
        }
View Full Code Here


            boolean caddrContainsSender = false;

            if ( ticket.getEncTicketPart().getClientAddresses() != null )
            {
                caddrContainsSender = ticket.getEncTicketPart().getClientAddresses().contains( new HostAddress( clientAddress ) );
            }

            StringBuffer sb = new StringBuffer();
            sb.append( "Monitoring context:" );
            sb.append( "\n\t" + "store                  " + store );
View Full Code Here

        EncKrbPrivPart privPart = new EncKrbPrivPart();
        byte[] resultCode =
            { ( byte ) 0x00, ( byte ) 0x00 };
        privPart.setUserData( resultCode );

        privPart.setSenderAddress( new HostAddress( InetAddress.getLocalHost() ) );

        // get the subsession key from the Authenticator
        EncryptionKey subSessionKey = authenticator.getSubKey();

        EncryptedData encPrivPart;
View Full Code Here

        KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
        kdcReqBody.setTill( requestedEndTime );

        HostAddress[] address =
            { new HostAddress( InetAddress.getByName( null ) ) };
        HostAddresses addresses = new HostAddresses( address );
        kdcReqBody.setAddresses( addresses );

        KdcReq message = getKdcRequest( tgt, kdcReqBody );

View Full Code Here

        KerberosTime requestedEndTime = new KerberosTime( now + 1 * KerberosTime.DAY );
        kdcReqBody.setTill( requestedEndTime );

        HostAddress[] address =
            { new HostAddress( InetAddress.getByName( null ) ) };
        HostAddresses addresses = new HostAddresses( address );
        kdcReqBody.setAddresses( addresses );

        KdcReq message = getKdcRequest( tgt, kdcReqBody );

View Full Code Here

        {
            throw de;
        }

        // Store the HostAddress in the container
        HostAddress hostAddress = hostAddressContainer.getHostAddress();

        // Update the expected length for the current TLV
        tlv.setExpectedLength( tlv.getExpectedLength() - tlv.getLength() );

        // Update the parent
View Full Code Here

        // Update the parent
        hostAddressesContainer.updateParent();

        // Store the hostAddress in the container
        HostAddress hostAddress = hostAddressContainer.getHostAddress();
        hostAddressesContainer.addHostAddress( hostAddress );


        if ( IS_DEBUG )
        {
View Full Code Here

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

        HostAddress hostAddress = new HostAddress();
        hostAddressContainer.setHostAddress( hostAddress );

        if ( IS_DEBUG )
        {
            LOG.debug( "HostAddress created" );
View Full Code Here

        }
       
        KrbSafeBody body = container.getKrbSafeBody();
       
        String time = "20101119080043Z";
        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
       
        assertTrue( Arrays.equals( new byte[]{0,1}, body.getUserData() ) );
        assertEquals( time, body.getTimestamp().getDate() );
        assertEquals( 1, body.getUsec() );
        assertEquals( 1, body.getSeqNumber() );
View Full Code Here

            fail();
        }
       
        KrbSafeBody body = container.getKrbSafeBody();
       
        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
       
        assertTrue( Arrays.equals( new byte[]{0,1}, body.getUserData() ) );
        assertNull( body.getTimestamp() );
        assertEquals( 1, body.getUsec() );
        assertEquals( 1, body.getSeqNumber() );
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.kerberos.components.HostAddress

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.