Class SigningMethodBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<SigningMethod>
-
- se.litsec.opensaml.saml2.metadata.build.SigningMethodBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<SigningMethod>
public class SigningMethodBuilder extends AbstractSAMLObjectBuilder<SigningMethod>
A builder foralg:SigningMethod
elements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description SigningMethodBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SigningMethodBuilder
algorithm(String algorithm)
Assigns the algorithm.static SigningMethodBuilder
builder()
Creates a newSigningMethodBuilder
instance.protected Class<SigningMethod>
getObjectType()
Returns the object type.SigningMethodBuilder
maxKeySize(Integer keySize)
Assigns the maximum size in bits for the key.SigningMethodBuilder
minKeySize(Integer keySize)
Assigns the minimum size in bits for the key.static SigningMethod
signingMethod(String algorithm)
Utility method that creates aSigningMethod
element having only itsAlgorithm
attribute assigned.static SigningMethod
signingMethod(String algorithm, Integer minKeySize, Integer maxKeySize)
Utility method that creates aSigningMethod
element.-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Method Detail
-
builder
public static SigningMethodBuilder builder()
Creates a newSigningMethodBuilder
instance.- Returns:
- a
SigningMethodBuilder
instance
-
signingMethod
public static SigningMethod signingMethod(String algorithm)
Utility method that creates aSigningMethod
element having only itsAlgorithm
attribute assigned.- Parameters:
algorithm
- the algorithm- Returns:
- a
SigningMethod
instance
-
signingMethod
public static SigningMethod signingMethod(String algorithm, Integer minKeySize, Integer maxKeySize)
Utility method that creates aSigningMethod
element.- Parameters:
algorithm
- the algorithmminKeySize
- minimum key size (in bits)maxKeySize
- maximum key size (in bits)- Returns:
- a
SigningMethod
instance
-
getObjectType
protected Class<SigningMethod> getObjectType()
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<SigningMethod>
- Returns:
- the object type
-
algorithm
public SigningMethodBuilder algorithm(String algorithm)
Assigns the algorithm.- Parameters:
algorithm
- the algorithm- Returns:
- the builder
-
minKeySize
public SigningMethodBuilder minKeySize(Integer keySize)
Assigns the minimum size in bits for the key.- Parameters:
keySize
- minimum key size- Returns:
- the builder
-
maxKeySize
public SigningMethodBuilder maxKeySize(Integer keySize)
Assigns the maximum size in bits for the key.- Parameters:
keySize
- maximum key size- Returns:
- the builder
-
-