Class SpnegoKerberosAuthenticationFactory
java.lang.Object
com.sonymobile.jenkins.plugins.kerberossso.ioc.SpnegoKerberosAuthenticationFactory
- All Implemented Interfaces:
KerberosAuthenticatorFactory
public class SpnegoKerberosAuthenticationFactory
extends Object
implements KerberosAuthenticatorFactory
Used to create SpnegoKerberosAuthenticators.
- Author:
- Robert Sandell <robert.sandell@sonymobile.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(Map<String, String> config) Returns an instance of a KerberosAuthenticator object.
-
Constructor Details
-
SpnegoKerberosAuthenticationFactory
public SpnegoKerberosAuthenticationFactory()
-
-
Method Details
-
getInstance
public KerberosAuthenticator getInstance(@NonNull Map<String, String> config) throws LoginException, IOException, URISyntaxException, PrivilegedActionExceptionDescription copied from interface:KerberosAuthenticatorFactory
Returns an instance of a KerberosAuthenticator object.- Specified by:
getInstance
in interfaceKerberosAuthenticatorFactory
- Parameters:
config
- the config the authenticator should have.- Returns:
- an instance of a KerberosAuthenticator object.
- Throws:
LoginException
- if login goes wrong.IOException
- if the authentication fails.URISyntaxException
- if something goes wrong.PrivilegedActionException
- if something goes wrong.
-