|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.validator.impl.TimeStampValidatorImpl
public class TimeStampValidatorImpl
implements the TimeStampValidator
. it retrieves the keystore and validates the timestamp.
Field Summary |
---|
Fields inherited from interface be.ehealth.technicalconnector.validator.TimeStampValidator |
---|
ALIASLIST, KEYSTORE |
Constructor Summary | |
---|---|
TimeStampValidatorImpl()
|
Method Summary | |
---|---|
void |
initialize(Map<String,Object> parameterMap)
initializes the implementation with additional parameters. |
void |
setAliases(List<String> aliases)
aliases must be set before using the validator. |
void |
setKeyStore(KeyStore keyStore)
keystore must be set before using the validator. |
void |
validateTimeStampToken(byte[] bs,
org.bouncycastle.tsp.TimeStampToken tsToken)
validates the timestamp token. |
void |
validateTimeStampToken(org.bouncycastle.tsp.TimeStampToken tsToken)
validates the timestamp token. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeStampValidatorImpl()
Method Detail |
---|
public void validateTimeStampToken(byte[] bs, org.bouncycastle.tsp.TimeStampToken tsToken) throws InvalidTimeStampException, TechnicalConnectorException
TimeStampValidator
InvalidTimeStampException
if the timestamp is not valid
validateTimeStampToken
in interface TimeStampValidator
tsToken
- the TimeStampToken
TechnicalConnectorException
- if an exception occurs thats not caused by invalid timestamp
InvalidTimeStampException
- if the timestamp was not validTimeStampValidator.validateTimeStampToken(byte[], TimeStampToken)
public void validateTimeStampToken(org.bouncycastle.tsp.TimeStampToken tsToken) throws InvalidTimeStampException, TechnicalConnectorException
TimeStampValidator
InvalidTimeStampException
if the timestamp is not valid
validateTimeStampToken
in interface TimeStampValidator
tsToken
- the TimeStampToken
TechnicalConnectorException
- if an exception occurs thats not caused by invalid timestamp
InvalidTimeStampException
- if the timestamp was not validTimeStampValidator.validateTimeStampToken(TimeStampToken)
public void initialize(Map<String,Object> parameterMap) throws TechnicalConnectorException
ConfigurableImplementation
initialize
in interface ConfigurableImplementation
parameterMap
- Map with for each propertyString ,the input parameter as Object.
TechnicalConnectorException
- if the parameterMap is not correct.public void setKeyStore(KeyStore keyStore)
TimeStampValidator
setKeyStore
in interface TimeStampValidator
public void setAliases(List<String> aliases)
TimeStampValidator
setAliases
in interface TimeStampValidator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |