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
ConstructorsModifierConstructorDescriptionprotected
Protected constructor used by builder.MessageDigestAlgorithmImpl
(String uri, int order, String jcaName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder.org.bouncycastle.asn1.x509.AlgorithmIdentifier
Gets the ASN.1AlgorithmIdentifier
for the algorithm.protected void
setJcaName
(String jcaName) Assigns the JCA name.toString()
Methods inherited from class se.swedenconnect.security.algorithms.impl.AbstractAlgorithm
equals, getJcaName, getOrder, getUri, hashCode, isBlacklisted, setBlacklisted, setOrder
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface se.swedenconnect.security.algorithms.Algorithm
getJcaName, getOrder, getUri, isBlacklisted
Methods 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.1AlgorithmIdentifier
for the algorithm.- Specified by:
getAlgorithmIdentifier
in interfaceAlgorithmIdentifierAware
- Returns:
- the AlgorithmIdentifier
-
setJcaName
Assigns the JCA name.- Overrides:
setJcaName
in classAbstractAlgorithm
- Parameters:
jcaName
- the JCA name
-
toString
- Overrides:
toString
in classAbstractAlgorithm
-