public class AuthSHA2 extends AuthGeneric
SHA-2
class implements the Secure Hash Authentication 2.Modifier and Type | Field and Description |
---|---|
private OID |
protocolID
The object identifier that identifies this authentication protocol.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
AuthSHA2(java.lang.String protocolName,
OID protocolOID,
int digestLength,
int authenticationCodeLength)
Creates a SHA authentication protocol with the specified digest length.
|
Modifier and Type | Method and Description |
---|---|
OID |
getID()
Gets the OID uniquely identifying the authentication protocol.
|
authenticate, changeDelta, getAuthenticationCodeLength, getDigestLength, getDigestObject, hash, hash, isAuthentic, passwordToKey
private static final long serialVersionUID
private OID protocolID
public AuthSHA2(java.lang.String protocolName, OID protocolOID, int digestLength, int authenticationCodeLength)
protocolName
- the SHA protocol name (i.e., "SHA-256").protocolOID
- the OID of the protocol as defined in RFC 7630.digestLength
- the digest length.authenticationCodeLength
- the length of the authentication hash output in octets.public OID getID()
AuthenticationProtocol
OID
instance.