Package org.apache.directory.server.kerberos.shared.messages.application

Examples of org.apache.directory.server.kerberos.shared.messages.application.ApplicationReply


        catch ( KerberosException ke )
        {
            throw new ChangePasswordException( ErrorType.KRB5_KPASSWD_SOFTERROR, ke );
        }

        ApplicationReply appReply = new ApplicationReply( encRepPart );

        // return status message value object
        ChangePasswordReplyModifier replyModifier = new ChangePasswordReplyModifier();
        replyModifier.setApplicationReply( appReply );
        replyModifier.setPrivateMessage( privateMessage );
View Full Code Here


    private static void monitorReply( ChangePasswordContext changepwContext ) throws KerberosException
    {
        try
        {
            ChangePasswordReply reply = ( ChangePasswordReply ) changepwContext.getReply();
            ApplicationReply appReply = reply.getApplicationReply();
            PrivateMessage priv = reply.getPrivateMessage();

            StringBuilder sb = new StringBuilder();
            sb.append( "Responding with change password reply:" );
            sb.append( "\n\t" + "appReply               " + appReply );
View Full Code Here

     enc-part[2]               EncryptedData
     }
     */
    private ApplicationReply decodeApplicationRequestSequence( DERSequence sequence )
    {
        ApplicationReply authHeader = null;

        for ( Enumeration e = sequence.getObjects(); e.hasMoreElements(); )
        {
            DERTaggedObject object = ( ( DERTaggedObject ) e.nextElement() );
            int tag = object.getTagNo();
            DEREncodable derObject = object.getObject();

            switch ( tag )
            {
                case 0:
                    //DERInteger tag0 = ( DERInteger ) derObject;
                    //authHeader.setProtocolVersionNumber( tag0.intValue() );
                    break;
                case 1:
                    //DERInteger tag1 = ( DERInteger ) derObject;
                    //authHeader.setMessageType( MessageType.getTypeByOrdinal( tag1.intValue() ) );
                    break;
                case 2:
                    DERSequence tag2 = ( DERSequence ) derObject;
                    authHeader = new ApplicationReply( EncryptedDataDecoder.decode( tag2 ) );
                    break;
            }
        }

        return authHeader;
View Full Code Here

        byte[] encodedAppReply = new byte[encodedAppReplyLength];
        buf.get( encodedAppReply );

        ApplicationReplyDecoder appDecoder = new ApplicationReplyDecoder();
        ApplicationReply applicationReply = appDecoder.decode( encodedAppReply );
        modifier.setApplicationReply( applicationReply );

        int privateBytesLength = messageLength - HEADER_LENGTH - encodedAppReplyLength;
        byte[] encodedPrivateMessage = new byte[privateBytesLength];
        buf.get( encodedPrivateMessage );
View Full Code Here

     * @throws IOException
     */
    public void encode( ByteBuffer buf, ChangePasswordReply message ) throws IOException
    {
        // Build application reply bytes
        ApplicationReply appReply = message.getApplicationReply();
        ApplicationReplyEncoder appEncoder = new ApplicationReplyEncoder();
        byte[] encodedAppReply = appEncoder.encode( appReply );

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

     * @throws IOException
     */
    public void encode( ByteBuffer buf, ChangePasswordReply message ) throws IOException
    {
        // Build application reply bytes
        ApplicationReply appReply = message.getApplicationReply();
        ApplicationReplyEncoder appEncoder = new ApplicationReplyEncoder();
        byte[] encodedAppReply = appEncoder.encode( appReply );

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

        catch ( KerberosException ke )
        {
            throw new ChangePasswordException( ErrorType.KRB5_KPASSWD_SOFTERROR, ke );
        }

        ApplicationReply appReply = new ApplicationReply( encRepPart );

        // return status message value object
        ChangePasswordReplyModifier replyModifier = new ChangePasswordReplyModifier();
        replyModifier.setApplicationReply( appReply );
        replyModifier.setPrivateMessage( privateMessage );
View Full Code Here

    private static void monitorReply( ChangePasswordContext changepwContext ) throws KerberosException
    {
        try
        {
            ChangePasswordReply reply = ( ChangePasswordReply ) changepwContext.getReply();
            ApplicationReply appReply = reply.getApplicationReply();
            PrivateMessage priv = reply.getPrivateMessage();

            StringBuilder sb = new StringBuilder();
            sb.append( "Responding with change password reply:" );
            sb.append( "\n\t" + "appReply               " + appReply );
View Full Code Here

TOP

Related Classes of org.apache.directory.server.kerberos.shared.messages.application.ApplicationReply

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.