Class EncryptionMethodBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<EncryptionMethod>
-
- se.litsec.opensaml.saml2.metadata.build.EncryptionMethodBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<EncryptionMethod>
public class EncryptionMethodBuilder extends AbstractSAMLObjectBuilder<EncryptionMethod>
A builder formd:EncryptionMethodelements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description EncryptionMethodBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionMethodBuilderalgorithm(String algorithm)Assigns 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>getObjectType()Returns the object type.EncryptionMethodBuilderkeySize(Integer keySize)Assigns the size in bits for the key.EncryptionMethodBuilderoAEPparams(String base64Encoding)Assigns the OAEP parameters.-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Method Detail
-
builder
public static EncryptionMethodBuilder builder()
Creates a newEncryptionMethodBuilderinstance.- Returns:
- a
EncryptionMethodBuilderinstance
-
encryptionMethod
public static EncryptionMethod encryptionMethod(String algorithm)
Utility method that creates aEncryptionMethodelement having only itsAlgorithmattribute assigned.- Parameters:
algorithm- the algorithm- Returns:
- a
EncryptionMethodinstance
-
encryptionMethod
public static EncryptionMethod encryptionMethod(String algorithm, Integer keySize)
Utility method that creates aEncryptionMethodelement.- Parameters:
algorithm- the algorithmkeySize- key size (in bits)- Returns:
- a
EncryptionMethodinstance
-
getObjectType
protected Class<EncryptionMethod> getObjectType()
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<EncryptionMethod>- Returns:
- the object type
-
algorithm
public EncryptionMethodBuilder algorithm(String algorithm)
Assigns the algorithm.- Parameters:
algorithm- the algorithm- Returns:
- the builder
-
keySize
public EncryptionMethodBuilder keySize(Integer keySize)
Assigns the size in bits for the key.- Parameters:
keySize- key size- Returns:
- the builder
-
oAEPparams
public EncryptionMethodBuilder oAEPparams(String base64Encoding)
Assigns the OAEP parameters.- Parameters:
base64Encoding- the parameters in base64- Returns:
- the builder
-
-