public final class SamSubsystem extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPKEY_BASE
the property key base used for SAM algorithm verifiers
|
Constructor and Description |
---|
SamSubsystem() |
Modifier and Type | Method and Description |
---|---|
static SamSubsystem |
getInstance()
Gets the singleton instance of the SamSubsystem.
|
void |
setIntegrityChecker(KeyIntegrityChecker keyChecker)
Sets the KeyIntegrityChecker used by the entire SamSubsystem.
|
void |
setUserContext(DirContext userContext,
String userBaseRdn)
Sets the context under which user entries can be found.
|
KerberosKey |
verify(PrincipalStoreEntry entry,
byte[] sad)
Uses the principal entry information to load the approapriate SamVerifier
and verify the Single-use password.
|
public static final String PROPKEY_BASE
public SamSubsystem()
public static SamSubsystem getInstance()
public void setIntegrityChecker(KeyIntegrityChecker keyChecker)
keyChecker
- the KeyIntegrityChecker used by the entire SamSubsystempublic KerberosKey verify(PrincipalStoreEntry entry, byte[] sad) throws SamException
entry
- the store entry for the Kerberos principalsad
- the single-use authentication data encrypted timestamp payloadSamException
- thrown when there is a failure within the verifier
or a verifier cannot be found.public void setUserContext(DirContext userContext, String userBaseRdn)
userContext
- the jndi context under which users can be found.userBaseRdn
- the container with usersCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.