public interface SamVerifier
Modifier and Type | Method and Description |
---|---|
SamType |
getSamType()
Gets the registered SAM algorithm type implemented by this SamVerifier.
|
void |
setIntegrityChecker(KeyIntegrityChecker keyChecker)
SamVerifiers require a KeyIntegrityChecker to calculate the integrity of
a generated KerberosKey.
|
void |
setUserContext(DirContext userContext)
Sets the user context where users are stored for the primary realm.
|
void |
shutdown()
Shuts down one of many pluggable SAM type subsystem.
|
void |
startup()
Starts one of many pluggable SAM type subsystem.
|
KerberosKey |
verify(KerberosPrincipal principal,
byte[] sad)
Verifies the single use password supplied.
|
void startup() throws SamException
SamException
- If the SamVerifier instance cannot be startedvoid shutdown()
void setIntegrityChecker(KeyIntegrityChecker keyChecker)
keyChecker
- The integrity checker that validates whether or not a
key can decrypt-decode preauth data (an encryped-encoded generalized
timestamp).KerberosKey verify(KerberosPrincipal principal, byte[] sad) throws SamException
principal
- The kerberos principal to use.sad
- Single-use authentication data (encrypted generalized timestamp).KerberosKey
.SamException
- If the verification failedSamType getSamType()
void setUserContext(DirContext userContext)
userContext
- The User contextCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.