Class RSAPSSSignatureAlgorithmImpl
- java.lang.Object
-
- se.swedenconnect.security.algorithms.impl.AbstractAlgorithm
-
- se.swedenconnect.security.algorithms.impl.AbstractJoseAlgorithm
-
- se.swedenconnect.security.algorithms.impl.AbstractKeyBasedAlgorithm
-
- se.swedenconnect.security.algorithms.impl.SignatureAlgorithmImpl
-
- se.swedenconnect.security.algorithms.impl.RSAPSSSignatureAlgorithmImpl
-
- All Implemented Interfaces:
Algorithm,AlgorithmIdentifierAware,JoseAlgorithm,KeyBasedAlgorithm,RSAPSSSignatureAlgorithm,SignatureAlgorithm
- Direct Known Subclasses:
NoParamsRSAPSSSignatureAlgorithm
public class RSAPSSSignatureAlgorithmImpl extends SignatureAlgorithmImpl implements RSAPSSSignatureAlgorithm
Implementation class forRSAPSSSignatureAlgorithm.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRSAPSSSignatureAlgorithmImpl.RSAPSSSignatureAlgorithmBuilderAbstract builder forRSAPSSSignatureAlgorithm.-
Nested classes/interfaces inherited from class se.swedenconnect.security.algorithms.impl.SignatureAlgorithmImpl
SignatureAlgorithmImpl.AbstractSignatureAlgorithmBuilder<T extends SignatureAlgorithmImpl,B extends SignatureAlgorithmImpl.AbstractSignatureAlgorithmBuilder<T,? extends AlgorithmBuilder<T>>>, SignatureAlgorithmImpl.SignatureAlgorithmBuilder
-
Nested classes/interfaces inherited from class se.swedenconnect.security.algorithms.impl.AbstractKeyBasedAlgorithm
AbstractKeyBasedAlgorithm.AbstractKeyBasedAlgorithmBuilder<T extends AbstractKeyBasedAlgorithm,B extends AbstractKeyBasedAlgorithm.AbstractKeyBasedAlgorithmBuilder<T,? extends AlgorithmBuilder<T>>>
-
Nested classes/interfaces inherited from class se.swedenconnect.security.algorithms.impl.AbstractJoseAlgorithm
AbstractJoseAlgorithm.AbstractJoseAlgorithmBuilder<T extends AbstractJoseAlgorithm,B extends AbstractJoseAlgorithm.AbstractJoseAlgorithmBuilder<T,? extends AlgorithmBuilder<T>>>
-
Nested classes/interfaces inherited from class se.swedenconnect.security.algorithms.impl.AbstractAlgorithm
AbstractAlgorithm.AbstractAlgorithmBuilder<T extends AbstractAlgorithm,B extends AlgorithmBuilder<T>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRSAPSSSignatureAlgorithmImpl(String uri)Protected constructor used by builder.RSAPSSSignatureAlgorithmImpl(String uri, int order, String keyType, String jcaName, PSSParameterSpec parameterSpec, com.nimbusds.jose.JWSAlgorithm joseAlgorithm, MessageDigestAlgorithm messageDigestAlgorithm)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static RSAPSSSignatureAlgorithmImpl.RSAPSSSignatureAlgorithmBuildergetBuilder(String uri)Creates a builder.MessageDigestAlgorithmgetMGFDigestAlgorithm()Gets the MGF digest algorithm.StringgetMGFUri()Gets the MGF URI.PSSParameterSpecgetParameterSpec()Gets the parameter spec for the RSA-PSS algorithm.inthashCode()voidsetMGFDigestAlgorithm(MessageDigestAlgorithm mgfDigestAlgorithm)Assigns the MGF digest algorithm.voidsetMGFUri(String mgfUri)Assigns the MGF URI.protected voidsetParameterSpec(PSSParameterSpec parameterSpec)Assigns the parameter spec.StringtoString()-
Methods inherited from class se.swedenconnect.security.algorithms.impl.SignatureAlgorithmImpl
builder, getAlgorithmIdentifier, getMessageDigestAlgorithm, setJcaName, setMessageDigestAlgorithm
-
Methods inherited from class se.swedenconnect.security.algorithms.impl.AbstractKeyBasedAlgorithm
getKeyType, setKeyType
-
Methods inherited from class se.swedenconnect.security.algorithms.impl.AbstractJoseAlgorithm
getJoseAlgorithm, setJoseAlgorithm
-
Methods inherited from class se.swedenconnect.security.algorithms.impl.AbstractAlgorithm
getJcaName, getOrder, getUri, 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.AlgorithmIdentifierAware
getAlgorithmIdentifier
-
Methods inherited from interface se.swedenconnect.security.algorithms.JoseAlgorithm
getJoseAlgorithm
-
Methods inherited from interface se.swedenconnect.security.algorithms.RSAPSSSignatureAlgorithm
getKeyType
-
Methods inherited from interface se.swedenconnect.security.algorithms.SignatureAlgorithm
getMessageDigestAlgorithm, getType
-
-
-
-
Constructor Detail
-
RSAPSSSignatureAlgorithmImpl
public RSAPSSSignatureAlgorithmImpl(String uri, int order, String keyType, String jcaName, PSSParameterSpec parameterSpec, com.nimbusds.jose.JWSAlgorithm joseAlgorithm, MessageDigestAlgorithm messageDigestAlgorithm)
Constructor.- Parameters:
uri- the algorithm URIorder- the ordering for the algorithmkeyType- the key typejcaName- the JCA nameparameterSpec- the parameter specorder- the ordering for the algorithmjoseAlgorithm- the JOSE algorithmmessageDigestAlgorithm- the message digest algorithm this signature algorithm uses
-
RSAPSSSignatureAlgorithmImpl
protected RSAPSSSignatureAlgorithmImpl(String uri)
Protected constructor used by builder.- Parameters:
uri- the algorithm URI
-
-
Method Detail
-
getBuilder
public static RSAPSSSignatureAlgorithmImpl.RSAPSSSignatureAlgorithmBuilder getBuilder(String uri)
Creates a builder.- Parameters:
uri- the algorithm URI- Returns:
- the builder
-
getParameterSpec
public PSSParameterSpec getParameterSpec()
Gets the parameter spec for the RSA-PSS algorithm.- Specified by:
getParameterSpecin interfaceRSAPSSSignatureAlgorithm- Returns:
- the PSSParameterSpec
-
setParameterSpec
protected void setParameterSpec(PSSParameterSpec parameterSpec)
Assigns the parameter spec.- Parameters:
parameterSpec- the parameter spec
-
getMGFUri
public String getMGFUri()
Gets the MGF URI.- Specified by:
getMGFUriin interfaceRSAPSSSignatureAlgorithm- Returns:
- the MGF URI
-
setMGFUri
public void setMGFUri(String mgfUri)
Assigns the MGF URI. If not assigned, the default given byRSAPSSSignatureAlgorithm.getMGFUri()is used.- Parameters:
mgfUri- the MGF URI
-
getMGFDigestAlgorithm
public MessageDigestAlgorithm getMGFDigestAlgorithm()
Gets the MGF digest algorithm.- Specified by:
getMGFDigestAlgorithmin interfaceRSAPSSSignatureAlgorithm- Returns:
- the MGF digest algorithm
-
setMGFDigestAlgorithm
public void setMGFDigestAlgorithm(MessageDigestAlgorithm mgfDigestAlgorithm)
Assigns the MGF digest algorithm. If not assigned,SignatureAlgorithm.getMessageDigestAlgorithm()will be used.- Parameters:
mgfDigestAlgorithm- the MGF digest algorithm
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSignatureAlgorithmImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classSignatureAlgorithmImpl
-
toString
public String toString()
- Overrides:
toStringin classSignatureAlgorithmImpl
-
-