Package com.helger.smpclient.security
Class TrustStoreBasedX509KeySelector
java.lang.Object
javax.xml.crypto.KeySelector
com.helger.smpclient.security.TrustStoreBasedX509KeySelector
Finds and returns a key using the data contained in a
KeyInfo object- Author:
- Philip Helger
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.xml.crypto.KeySelector
KeySelector.Purpose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanalgorithmEquals(String sAlgURI, String sAlgName) select(KeyInfo aKeyInfo, KeySelector.Purpose aPurpose, AlgorithmMethod aMethod, XMLCryptoContext aCryptoContext) setValidationDateTime(LocalDateTime aValidationDateTime) Set the date and time when the trust store entry should be valid.Methods inherited from class javax.xml.crypto.KeySelector
singletonKeySelector
-
Constructor Details
-
TrustStoreBasedX509KeySelector
Constructor- Parameters:
aTrustStore- The trust store to use. May not benull.- Since:
- 8.1.1
-
-
Method Details
-
getValidationDateTime
- Returns:
- The selected validation date and time to use.
nullmeans current date time. - Since:
- 8.6.2
-
setValidationDateTime
@Nonnull public TrustStoreBasedX509KeySelector setValidationDateTime(@Nullable LocalDateTime aValidationDateTime) Set the date and time when the trust store entry should be valid.- Parameters:
aValidationDateTime- The date and time to use. May benull.- Returns:
- this for chaining
- Since:
- 8.6.2
-
algorithmEquals
-
select
public KeySelectorResult select(@Nonnull KeyInfo aKeyInfo, KeySelector.Purpose aPurpose, @Nonnull AlgorithmMethod aMethod, XMLCryptoContext aCryptoContext) throws KeySelectorException - Specified by:
selectin classKeySelector- Throws:
KeySelectorException
-