Class RSAOAEPParameters
java.lang.Object
org.opensaml.xmlsec.encryption.support.RSAOAEPParameters
Class for representing parameter inputs to the RSA-OAEP key transport algorithm.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.RSAOAEPParameters(String digest, String mgf, String params) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the digest method algorithm URI.Get the mask generation function (MGF) algorithm URI.Get the base64-encoded OAEPParams value.booleanDetermine whether the parameters instance is complete, meaning values are populated for all data properties.booleanisEmpty()Determine whether the parameters instance is empty, meaning it has no values populated for any data properties.voidsetDigestMethod(String value) Set the digest method algorithm URI.voidsetMaskGenerationFunction(String value) Set the mask generation function (MGF) algorithm URI.voidsetOAEPparams(String value) Set the base64-encoded OAEPParams value.
-
Field Details
-
digestMethod
Digest method algorithm URI. -
maskGenerationFunction
Mask generation function (MGF) algorithm URI. -
oaepParams
Base64-encoded OAEPParams value.
-
-
Constructor Details
-
RSAOAEPParameters
public RSAOAEPParameters()Constructor. -
RSAOAEPParameters
Constructor.- Parameters:
digest- the digest methodmgf- the mask generation function (MGF)params- the OAEPParms (base64-encoded)
-
-
Method Details
-
isEmpty
public boolean isEmpty()Determine whether the parameters instance is empty, meaning it has no values populated for any data properties.- Returns:
- true if all property values are null, false otherwise
-
isComplete
public boolean isComplete()Determine whether the parameters instance is complete, meaning values are populated for all data properties.- Returns:
- true if all property values are populated, false otherwise
-
getDigestMethod
Get the digest method algorithm URI.- Returns:
- the digest method URI
-
setDigestMethod
Set the digest method algorithm URI.- Parameters:
value- the new digest method URI
-
getMaskGenerationFunction
Get the mask generation function (MGF) algorithm URI.- Returns:
- the MGF URI
-
setMaskGenerationFunction
Set the mask generation function (MGF) algorithm URI.- Parameters:
value- the new MGF algorithm URI
-
getOAEPParams
Get the base64-encoded OAEPParams value.- Returns:
- the base64-encoded OAEPParams
-
setOAEPparams
Set the base64-encoded OAEPParams value.- Parameters:
value- the new base64-encoded OAEPParams value
-