Class GGSSchemeBase

    • Field Detail

      • log

        private final org.apache.commons.logging.Log log
      • base64codec

        private final org.apache.commons.codec.binary.Base64 base64codec
      • stripPort

        private final boolean stripPort
      • useCanonicalHostname

        private final boolean useCanonicalHostname
      • token

        private byte[] token
        base64 decoded challenge
    • Constructor Detail

      • GGSSchemeBase

        GGSSchemeBase​(boolean stripPort,
                      boolean useCanonicalHostname)
      • GGSSchemeBase

        GGSSchemeBase​(boolean stripPort)
      • GGSSchemeBase

        GGSSchemeBase()
    • Method Detail

      • getManager

        protected org.ietf.jgss.GSSManager getManager()
      • generateGSSToken

        protected byte[] generateGSSToken​(byte[] input,
                                          org.ietf.jgss.Oid oid,
                                          java.lang.String authServer)
                                   throws org.ietf.jgss.GSSException
        Throws:
        org.ietf.jgss.GSSException
      • generateGSSToken

        protected byte[] generateGSSToken​(byte[] input,
                                          org.ietf.jgss.Oid oid,
                                          java.lang.String authServer,
                                          Credentials credentials)
                                   throws org.ietf.jgss.GSSException
        Throws:
        org.ietf.jgss.GSSException
        Since:
        4.4
      • createGSSContext

        org.ietf.jgss.GSSContext createGSSContext​(org.ietf.jgss.GSSManager manager,
                                                  org.ietf.jgss.Oid oid,
                                                  org.ietf.jgss.GSSName serverName,
                                                  org.ietf.jgss.GSSCredential gssCredential)
                                           throws org.ietf.jgss.GSSException
        Throws:
        org.ietf.jgss.GSSException
      • generateToken

        protected byte[] generateToken​(byte[] input,
                                       java.lang.String authServer,
                                       Credentials credentials)
                                throws org.ietf.jgss.GSSException
        Throws:
        org.ietf.jgss.GSSException
        Since:
        4.4
      • isComplete

        public boolean isComplete()
        Description copied from interface: AuthScheme
        Authentication process may involve a series of challenge-response exchanges. This method tests if the authorization process has been completed, either successfully or unsuccessfully, that is, all the required authorization challenges have been processed in their entirety.
        Returns:
        true if the authentication process has been completed, false otherwise.
      • resolveCanonicalHostname

        private java.lang.String resolveCanonicalHostname​(java.lang.String host)
                                                   throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException