Class MessageDigestAlgorithmImpl
java.lang.Object
se.swedenconnect.security.algorithms.impl.AbstractAlgorithm
se.swedenconnect.security.algorithms.impl.MessageDigestAlgorithmImpl
- All Implemented Interfaces:
Algorithm,AlgorithmIdentifierAware,MessageDigestAlgorithm
Implementation class for the
MessageDigestAlgorithm.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class se.swedenconnect.security.algorithms.impl.AbstractAlgorithm
AbstractAlgorithm.AbstractAlgorithmBuilder<T extends AbstractAlgorithm,B extends AlgorithmBuilder<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor used by builder.MessageDigestAlgorithmImpl(String uri, int order, String jcaName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder.org.bouncycastle.asn1.x509.AlgorithmIdentifierGets the ASN.1AlgorithmIdentifierfor the algorithm.protected voidsetJcaName(String jcaName) Assigns the JCA name.toString()Methods inherited from class se.swedenconnect.security.algorithms.impl.AbstractAlgorithm
equals, getJcaName, getOrder, getUri, hashCode, isBlacklisted, setBlacklisted, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface se.swedenconnect.security.algorithms.Algorithm
getJcaName, getOrder, getUri, isBlacklistedMethods inherited from interface se.swedenconnect.security.algorithms.MessageDigestAlgorithm
getType
-
Constructor Details
-
MessageDigestAlgorithmImpl
Constructor.- Parameters:
uri- the algorithm URIorder- the ordering for the algorithmjcaName- the JCA name
-
MessageDigestAlgorithmImpl
Protected constructor used by builder.- Parameters:
uri- the algorithm URI
-
-
Method Details
-
builder
Creates a builder.- Parameters:
uri- the algorithm URI- Returns:
- the builder
-
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()Gets the ASN.1AlgorithmIdentifierfor the algorithm.- Specified by:
getAlgorithmIdentifierin interfaceAlgorithmIdentifierAware- Returns:
- the AlgorithmIdentifier
-
setJcaName
Assigns the JCA name.- Overrides:
setJcaNamein classAbstractAlgorithm- Parameters:
jcaName- the JCA name
-
toString
- Overrides:
toStringin classAbstractAlgorithm
-