public class AuthSHA2 extends AuthGeneric
SHA-2
class implements the Secure Hash Authentication 2.HMAC_BLOCK_SIZE, hmacBlockSize
Constructor and Description |
---|
AuthSHA2(String protocolName,
OID protocolOID,
int digestLength,
int authenticationCodeLength)
Deprecated.
Use
AuthSHA2(String, OID, int, int, int) instead to specify the correct
HMAC block size |
AuthSHA2(String protocolName,
OID protocolOID,
int digestLength,
int authenticationCodeLength,
int hmacBlockSize)
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, getMaxKeyLength, hash, hash, isAuthentic, isSupported, passwordToKey
public AuthSHA2(String protocolName, OID protocolOID, int digestLength, int authenticationCodeLength)
AuthSHA2(String, OID, int, int, int)
instead to specify the correct
HMAC block sizeprotocolName
- 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 AuthSHA2(String protocolName, OID protocolOID, int digestLength, int authenticationCodeLength, int hmacBlockSize)
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.hmacBlockSize
- the HMAC block size of the authentication protocol.public OID getID()
AuthenticationProtocol
OID
instance.Copyright © 2022 SNMP4J.org. All rights reserved.