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, passwordToKey
public 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()
AuthenticationProtocol
OID
instance.Copyright © 2017 SNMP4J.org. All rights reserved.