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
public abstract class PacSignatureVerifierBase extends Object implements PacSignatureVerifier
A base implementation of thePacSignatureVerifier. Implementors are expected to implementverifyInternal(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 Constructor Description PacSignatureVerifierBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidverify(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.
-
-
-
Method Detail
-
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:
verify(PacSignatureData, byte[], Key[])
-
-