Class SaslServerContext

  • All Implemented Interfaces:
    SaslContext

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

      Constructors 
      Constructor Description
      SaslServerContext​(javax.security.sasl.SaslServerFactory saslServerFactory, java.lang.String mech, java.lang.String serverName, javax.security.auth.callback.CallbackHandler callback_handler, java.util.Map<java.lang.String,​java.lang.String> props, javax.security.auth.Subject subject)  
    • Constructor Detail

      • SaslServerContext

        public SaslServerContext​(javax.security.sasl.SaslServerFactory saslServerFactory,
                                 java.lang.String mech,
                                 java.lang.String serverName,
                                 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
      • awaitCompletion

        public void awaitCompletion​(long timeout)
                             throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • getAuthorizationID

        public java.lang.String getAuthorizationID()