Class SaslClientContext

  • All Implemented Interfaces:
    SaslContext

    public class SaslClientContext
    extends java.lang.Object
    implements SaslContext
    • Constructor Summary

      Constructors 
      Constructor Description
      SaslClientContext​(javax.security.sasl.SaslClientFactory saslClientFactory, java.lang.String mech, java.lang.String server_name, javax.security.auth.callback.CallbackHandler callback_handler, java.util.Map<java.lang.String,​java.lang.String> props, javax.security.auth.Subject subject)  
    • Constructor Detail

      • SaslClientContext

        public SaslClientContext​(javax.security.sasl.SaslClientFactory saslClientFactory,
                                 java.lang.String mech,
                                 java.lang.String server_name,
                                 javax.security.auth.callback.CallbackHandler callback_handler,
                                 java.util.Map<java.lang.String,​java.lang.String> props,
                                 javax.security.auth.Subject subject)
                          throws javax.security.sasl.SaslException
        Throws:
        javax.security.sasl.SaslException
    • Method Detail

      • wrap

        public byte[] wrap​(byte[] outgoing,
                           int offset,
                           int len)
                    throws javax.security.sasl.SaslException
        Specified by:
        wrap in interface SaslContext
        Throws:
        javax.security.sasl.SaslException
      • unwrap

        public byte[] unwrap​(byte[] incoming,
                             int offset,
                             int len)
                      throws javax.security.sasl.SaslException
        Specified by:
        unwrap in interface SaslContext
        Throws:
        javax.security.sasl.SaslException
      • addHeader

        public Message addHeader​(Message msg,
                                 byte[] payload)
                          throws javax.security.sasl.SaslException
        Throws:
        javax.security.sasl.SaslException