Class EncryptionMethodBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<EncryptionMethod>
se.swedenconnect.opensaml.saml2.metadata.build.EncryptionMethodBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<EncryptionMethod>
A builder for
md:EncryptionMethod elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssigns the algorithm.static EncryptionMethodBuilderbuilder()Creates a newEncryptionMethodBuilderinstance.static EncryptionMethodencryptionMethod(String algorithm) Utility method that creates aEncryptionMethodelement having only itsAlgorithmattribute assigned.static EncryptionMethodencryptionMethod(String algorithm, Integer keySize) Utility method that creates aEncryptionMethodelement.protected Class<EncryptionMethod> Returns the object type.Assigns the size in bits for the key.oAEPparams(String base64Encoding) Assigns the OAEP parameters.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
EncryptionMethodBuilder
public EncryptionMethodBuilder()
-
-
Method Details
-
builder
Creates a newEncryptionMethodBuilderinstance.- Returns:
- a EncryptionMethodBuilder instance
-
encryptionMethod
Utility method that creates aEncryptionMethodelement having only itsAlgorithmattribute assigned.- Parameters:
algorithm- the algorithm- Returns:
- a EncryptionMethod instance
-
encryptionMethod
Utility method that creates aEncryptionMethodelement.- Parameters:
algorithm- the algorithmkeySize- key size (in bits)- Returns:
- a EncryptionMethod instance
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<EncryptionMethod>- Returns:
- the object type
-
algorithm
Assigns the algorithm.- Parameters:
algorithm- the algorithm- Returns:
- the builder
-
keySize
Assigns the size in bits for the key.- Parameters:
keySize- key size- Returns:
- the builder
-
oAEPparams
Assigns the OAEP parameters.- Parameters:
base64Encoding- the parameters in base64- Returns:
- the builder
-