Class CredentialHelper


  • public final class CredentialHelper
    extends java.lang.Object
    Simple helper class which gets GSS credential using a fixed Krb5 login configuration. May need generalizing to deal with non-Sun JREs.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  CredentialHelper.FixedLoginConfiguration
      A login configuration which is defined from code.
      private static class  CredentialHelper.G
      Privileged action which runs as the subject to get the credentials.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CredentialHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.ietf.jgss.GSSCredential creds​(org.ietf.jgss.GSSManager mgr, java.lang.String spn, java.lang.String keytab)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CredentialHelper

        private CredentialHelper()
    • Method Detail

      • creds

        public static org.ietf.jgss.GSSCredential creds​(org.ietf.jgss.GSSManager mgr,
                                                        java.lang.String spn,
                                                        java.lang.String keytab)
                                                 throws javax.security.auth.login.LoginException,
                                                        org.ietf.jgss.GSSException
        Throws:
        javax.security.auth.login.LoginException
        org.ietf.jgss.GSSException