Package org.opensaml.security.criteria
Class KeyAlgorithmCriterion
java.lang.Object
org.opensaml.security.criteria.KeyAlgorithmCriterion
- All Implemented Interfaces:
Criterion
An implementation of
Criterion which specifies key algorithm criteria.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the key algorithm criteria.inthashCode()voidsetKeyAlgorithm(String algorithm) Set the key algorithm criteria.toString()private static StringvalidateAlgorithm(String algorithm) Static method to validate and return null algorithm.
-
Field Details
-
keyAlgorithm
Key algorithm type of resolved credentials.
-
-
Constructor Details
-
KeyAlgorithmCriterion
Constructor.- Parameters:
algorithm- key algorithm
-
-
Method Details
-
getKeyAlgorithm
Get the key algorithm criteria.- Returns:
- returns the keyAlgorithm.
-
setKeyAlgorithm
Set the key algorithm criteria.- Parameters:
algorithm- The keyAlgorithm to set.
-
toString
-
hashCode
public int hashCode() -
equals
-
validateAlgorithm
Static method to validate and return null algorithm.- Parameters:
algorithm- candidate- Returns:
- the input parameter if not null/empty after trimming
-