Class SigningMethodBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<SigningMethod>
se.swedenconnect.opensaml.saml2.metadata.build.SigningMethodBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<SigningMethod>
A builder for
alg:SigningMethod elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssigns the algorithm.static SigningMethodBuilderbuilder()Creates a newSigningMethodBuilderinstance.protected Class<SigningMethod> Returns the object type.maxKeySize(Integer keySize) Assigns the maximum size in bits for the key.minKeySize(Integer keySize) Assigns the minimum size in bits for the key.static SigningMethodsigningMethod(String algorithm) Utility method that creates aSigningMethodelement having only itsAlgorithmattribute assigned.static SigningMethodsigningMethod(String algorithm, Integer minKeySize, Integer maxKeySize) Utility method that creates aSigningMethodelement.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
SigningMethodBuilder
public SigningMethodBuilder()
-
-
Method Details
-
builder
Creates a newSigningMethodBuilderinstance.- Returns:
- a SigningMethodBuilder instance
-
signingMethod
Utility method that creates aSigningMethodelement having only itsAlgorithmattribute assigned.- Parameters:
algorithm- the algorithm- Returns:
- a SigningMethod instance
-
signingMethod
Utility method that creates aSigningMethodelement.- Parameters:
algorithm- the algorithmminKeySize- minimum key size (in bits)maxKeySize- maximum key size (in bits)- Returns:
- a SigningMethod instance
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<SigningMethod>- Returns:
- the object type
-
algorithm
Assigns the algorithm.- Parameters:
algorithm- the algorithm- Returns:
- the builder
-
minKeySize
Assigns the minimum size in bits for the key.- Parameters:
keySize- minimum key size- Returns:
- the builder
-
maxKeySize
Assigns the maximum size in bits for the key.- Parameters:
keySize- maximum key size- Returns:
- the builder
-