Class GSSCredentialSecurityFactory
- java.lang.Object
-
- org.wildfly.security.mechanism.gssapi.GSSCredentialSecurityFactory
-
- All Implemented Interfaces:
SecurityFactory<GSSKerberosCredential>
public final class GSSCredentialSecurityFactory extends Object implements SecurityFactory<GSSKerberosCredential>
ASecurityFactory
implementation for obtaining aGSSCredential
.- Author:
- Darran Lofthouse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GSSCredentialSecurityFactory.Builder
A builder for GSS credential security factories.
-
Field Summary
Fields Modifier and Type Field Description private AtomicReference<GSSKerberosCredential>
cachedCredentialReference
private UnaryOperator<GSSKerberosCredential>
credentialOperator
private static String
IBMKRB5LoginModule
private static boolean
IS_IBM
static Oid
KERBEROS_V5
private static String
KRB5LoginModule
private int
minimumRemainingLifetime
private static long
ONE_SECOND
private org.wildfly.common.function.ExceptionSupplier<GSSKerberosCredential,GeneralSecurityException>
rawSupplier
static Oid
SPNEGO
-
Constructor Summary
Constructors Constructor Description GSSCredentialSecurityFactory(int minimumRemainingLifetime, org.wildfly.common.function.ExceptionSupplier<GSSKerberosCredential,GeneralSecurityException> rawSupplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GSSCredentialSecurityFactory.Builder
builder()
Obtain a newGSSCredentialSecurityFactory.Builder
capable of building aGSSCredentialSecurityFactory
.GSSKerberosCredential
create()
Create an instance.private boolean
testIsValid(KerberosTicket ticket)
private boolean
testIsValid(GSSCredential gssCredential)
private GSSKerberosCredential
update(GSSKerberosCredential original)
private static GSSCredential
wrapCredential(GSSCredential credential)
-
-
-
Field Detail
-
IS_IBM
private static final boolean IS_IBM
-
KRB5LoginModule
private static final String KRB5LoginModule
- See Also:
- Constant Field Values
-
IBMKRB5LoginModule
private static final String IBMKRB5LoginModule
- See Also:
- Constant Field Values
-
ONE_SECOND
private static final long ONE_SECOND
- See Also:
- Constant Field Values
-
KERBEROS_V5
public static final Oid KERBEROS_V5
-
SPNEGO
public static final Oid SPNEGO
-
minimumRemainingLifetime
private final int minimumRemainingLifetime
-
rawSupplier
private final org.wildfly.common.function.ExceptionSupplier<GSSKerberosCredential,GeneralSecurityException> rawSupplier
-
cachedCredentialReference
private final AtomicReference<GSSKerberosCredential> cachedCredentialReference
-
credentialOperator
private final UnaryOperator<GSSKerberosCredential> credentialOperator
-
-
Constructor Detail
-
GSSCredentialSecurityFactory
GSSCredentialSecurityFactory(int minimumRemainingLifetime, org.wildfly.common.function.ExceptionSupplier<GSSKerberosCredential,GeneralSecurityException> rawSupplier)
-
-
Method Detail
-
update
private GSSKerberosCredential update(GSSKerberosCredential original)
-
testIsValid
private boolean testIsValid(GSSCredential gssCredential) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
testIsValid
private boolean testIsValid(KerberosTicket ticket)
-
create
public GSSKerberosCredential create() throws GeneralSecurityException
Description copied from interface:SecurityFactory
Create an instance.- Specified by:
create
in interfaceSecurityFactory<GSSKerberosCredential>
- Returns:
- the new instance
- Throws:
GeneralSecurityException
- if instantiation fails for some reason
-
builder
public static GSSCredentialSecurityFactory.Builder builder()
Obtain a newGSSCredentialSecurityFactory.Builder
capable of building aGSSCredentialSecurityFactory
.- Returns:
- a new
GSSCredentialSecurityFactory.Builder
capable of building aGSSCredentialSecurityFactory
.
-
wrapCredential
private static GSSCredential wrapCredential(GSSCredential credential)
-
-