Examples of ApReq


Examples of org.apache.directory.shared.kerberos.messages.ApReq

    }


    private static void verifyTgtAuthHeader( TicketGrantingContext tgsContext ) throws KerberosException
    {
        ApReq authHeader = tgsContext.getAuthHeader();
        Ticket tgt = tgsContext.getTgt();

        boolean isValidate = tgsContext.getRequest().getKdcReqBody().getKdcOptions().get( KdcOptions.VALIDATE );

        EncryptionType encryptionType = tgt.getEncPart().getEType();
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

        if ( request.getAuthHeader() == null || request.getAuthHeader().getTicket() == null )
        {
            throw new ChangePasswordException( ErrorType.KRB5_KPASSWD_AUTHERROR );
        }

        ApReq authHeader = request.getAuthHeader();
        Ticket ticket = authHeader.getTicket();

        changepwContext.setAuthHeader( authHeader );
        changepwContext.setTicket( ticket );
    }
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

    }
   
   
    private static void verifyServiceTicketAuthHeader( ChangePasswordContext changepwContext ) throws KerberosException
    {
        ApReq authHeader = changepwContext.getAuthHeader();
        Ticket ticket = changepwContext.getTicket();

        EncryptionType encryptionType = ticket.getEncPart().getEType();
        EncryptionKey serverKey = changepwContext.getServerEntry().getKeyMap().get( encryptionType );
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

    private static void monitorContext( ChangePasswordContext changepwContext ) throws KerberosException
    {
        try
        {
            PrincipalStore store = changepwContext.getStore();
            ApReq authHeader = changepwContext.getAuthHeader();
            Ticket ticket = changepwContext.getTicket();
            ReplayCache replayCache = changepwContext.getConfig().getReplayCache();
            long clockSkew = changepwContext.getConfig().getAllowableClockSkew();

            Authenticator authenticator = changepwContext.getAuthenticator();
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

     * @throws IOException
     */
    public void encode( ByteBuffer buf, ChangePasswordRequest message ) throws IOException
    {
        // Build application request bytes
        ApReq appRequest = message.getAuthHeader();
        ApplicationRequestEncoder appEncoder = new ApplicationRequestEncoder();
        byte[] encodedAppRequest = appEncoder.encode( appRequest );

        // Build private message bytes
        PrivateMessage privateMessage = message.getPrivateMessage();
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

        short authHeaderLength = buf.getShort();

        byte[] undecodedAuthHeader = new byte[authHeaderLength];
        buf.get( undecodedAuthHeader, 0, authHeaderLength );

        ApReq authHeader = KerberosDecoder.decodeApReq( undecodedAuthHeader );

        modifier.setAuthHeader( authHeader );

        byte[] encodedPrivate = new byte[buf.remaining()];
        buf.get( encodedPrivate, 0, buf.remaining() );
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

        {
            throw new KerberosException( ErrorType.KRB_AP_ERR_BAD_INTEGRITY, de );
        }

        // get the decoded ApReq
        ApReq apReq = ( ( ApReqContainer ) apReqContainer ).getApReq();

        return apReq;
    }
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

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

        ApReq apReq = apReqContainer.getApReq();
        ApOptions apOptions = new ApOptions( tlv.getValue().getData() );

        apReq.setApOptions( apOptions );

        if ( IS_DEBUG )
        {
            LOG.debug( "APOptions : {}", apOptions );
        }
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

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

        // Create the AP-REQ now
        ApReq apReq = new ApReq();

        apReqContainer.setApReq( apReq );
    }
View Full Code Here

Examples of org.apache.directory.shared.kerberos.messages.ApReq

        // Update the parent
        apReqContainer.updateParent();

        // Store the Ticket in the container
        Ticket ticket = ticketContainer.getTicket();
        ApReq apReq = apReqContainer.getApReq();
        apReq.setTicket( ticket );

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