Package net.sf.michaelo.tomcat.pac
Class PacSignatureVerifierBase
java.lang.Object
net.sf.michaelo.tomcat.pac.PacSignatureVerifierBase
- All Implemented Interfaces:
PacSignatureVerifier
- Direct Known Subclasses:
PrivateSunPacSignatureVerifier
A base implementation of the
PacSignatureVerifier. Implementors are expected to implement
verifyInternal(PacSignatureData, byte[], Key[]) only.-
Field Summary
Fields inherited from interface net.sf.michaelo.tomcat.pac.PacSignatureVerifier
KU_KERB_NON_KERB_CKSUM_SALT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidverify(PacSignatureData signatureData, byte[] data, Key[] keys) Verifies the signature on the supplied data with an array of suitable Kerberos keys.protected abstract voidverifyInternal(PacSignatureData signatureData, byte[] data, Key[] keys) In contrast toverify(PacSignatureData, byte[], Key[])all input parameters are validated before passed down.
-
Constructor Details
-
PacSignatureVerifierBase
public PacSignatureVerifierBase()
-
-
Method Details
-
verify
public void verify(PacSignatureData signatureData, byte[] data, Key[] keys) throws SignatureException Description copied from interface:PacSignatureVerifierVerifies the signature on the supplied data with an array of suitable Kerberos keys.- Specified by:
verifyin interfacePacSignatureVerifier- Parameters:
signatureData- the PAC signature data to be verifieddata- the data to be verififedkeys- an array of keys to calculate the signature- Throws:
SignatureException- if signature cannot be verified
-
verifyInternal
protected abstract void verifyInternal(PacSignatureData signatureData, byte[] data, Key[] keys) throws SignatureException In contrast toverify(PacSignatureData, byte[], Key[])all input parameters are validated before passed down.- Throws:
SignatureException- See Also:
-