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 SummaryConstructors Constructor Description EncryptionMethodBuilder()
 - 
Method SummaryAll 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.AbstractSAMLObjectBuilderbuild, getDefaultElementName, object
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static EncryptionMethodBuilder builder() Creates a newEncryptionMethodBuilderinstance.- Returns:
- a EncryptionMethodBuilderinstance
 
 - 
encryptionMethodpublic static EncryptionMethod encryptionMethod(String algorithm) Utility method that creates aEncryptionMethodelement having only itsAlgorithmattribute assigned.- Parameters:
- algorithm- the algorithm
- Returns:
- a EncryptionMethodinstance
 
 - 
encryptionMethodpublic static EncryptionMethod encryptionMethod(String algorithm, Integer keySize) Utility method that creates aEncryptionMethodelement.- Parameters:
- algorithm- the algorithm
- keySize- key size (in bits)
- Returns:
- a EncryptionMethodinstance
 
 - 
getObjectTypeprotected Class<EncryptionMethod> getObjectType() Returns the object type.- Specified by:
- getObjectTypein class- AbstractSAMLObjectBuilder<EncryptionMethod>
- Returns:
- the object type
 
 - 
algorithmpublic EncryptionMethodBuilder algorithm(String algorithm) Assigns the algorithm.- Parameters:
- algorithm- the algorithm
- Returns:
- the builder
 
 - 
keySizepublic EncryptionMethodBuilder keySize(Integer keySize) Assigns the size in bits for the key.- Parameters:
- keySize- key size
- Returns:
- the builder
 
 - 
oAEPparamspublic EncryptionMethodBuilder oAEPparams(String base64Encoding) Assigns the OAEP parameters.- Parameters:
- base64Encoding- the parameters in base64
- Returns:
- the builder
 
 
- 
 
-