public class AuthSHA2 extends AuthGeneric
SHA-2 class implements the Secure Hash Authentication 2.| Constructor and Description |
|---|
AuthSHA2(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, passwordToKeypublic AuthSHA2(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()
AuthenticationProtocolOID instance.Copyright © 2016 SNMP4J.org. All Rights Reserved.