Class EncryptionParameters
- java.lang.Object
-
- net.shibboleth.oidc.security.jose.EncryptionParameters
-
public class EncryptionParameters extends Object
The effective parameters to use when generating encrypted JWTs.- Since:
- 2.2.0
-
-
Field Summary
Fields Modifier and Type Field Description private StringdataEncryptionAlgorithmURIThe EncryptedData encryption algorithm URI.private CredentialdataEncryptionCredentialThe EncryptedData encryption credential.private StringkeyTransportEncryptionAlgorithmURIThe EncryptedKey encryption algorithm URI.private CredentialkeyTransportEncryptionCredentialThe EncryptedKey encryption credential.
-
Constructor Summary
Constructors Constructor Description EncryptionParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDataEncryptionAlgorithm()Get the encryption algorithm URI to use when encrypting the EncryptedData.CredentialgetDataEncryptionCredential()Get the encryption credential to use when encrypting the EncryptedData.StringgetKeyTransportEncryptionAlgorithm()Get the encryption algorithm URI to use when encrypting the EncryptedKey.CredentialgetKeyTransportEncryptionCredential()Get the encryption credential to use when encrypting the EncryptedKey.voidsetDataEncryptionAlgorithm(String uri)Set the encryption algorithm URI to use when encrypting the EncryptedData.voidsetDataEncryptionCredential(Credential credential)Set the encryption credential to use when encrypting the EncryptedData.voidsetKeyTransportEncryptionAlgorithm(String uri)Set the encryption algorithm URI to use when encrypting the EncryptedKey.voidsetKeyTransportEncryptionCredential(Credential credential)Set the encryption credential to use when encrypting the EncryptedKey.
-
-
-
Field Detail
-
dataEncryptionCredential
@Nullable private Credential dataEncryptionCredential
The EncryptedData encryption credential.
-
keyTransportEncryptionCredential
@Nullable private Credential keyTransportEncryptionCredential
The EncryptedKey encryption credential.
-
dataEncryptionAlgorithmURI
@Nullable private String dataEncryptionAlgorithmURI
The EncryptedData encryption algorithm URI.
-
keyTransportEncryptionAlgorithmURI
@Nullable private String keyTransportEncryptionAlgorithmURI
The EncryptedKey encryption algorithm URI.
-
-
Method Detail
-
getDataEncryptionCredential
@Nullable public Credential getDataEncryptionCredential()
Get the encryption credential to use when encrypting the EncryptedData.- Returns:
- the encryption credential
-
setDataEncryptionCredential
public void setDataEncryptionCredential(@Nullable Credential credential)Set the encryption credential to use when encrypting the EncryptedData.- Parameters:
credential- the encryption credential
-
getKeyTransportEncryptionCredential
@Nullable public Credential getKeyTransportEncryptionCredential()
Get the encryption credential to use when encrypting the EncryptedKey.- Returns:
- the encryption credential
-
setKeyTransportEncryptionCredential
public void setKeyTransportEncryptionCredential(@Nullable Credential credential)Set the encryption credential to use when encrypting the EncryptedKey.- Parameters:
credential- the encryption credential
-
getDataEncryptionAlgorithm
@Nullable public String getDataEncryptionAlgorithm()
Get the encryption algorithm URI to use when encrypting the EncryptedData.- Returns:
- an encryption algorithm URI
-
setDataEncryptionAlgorithm
public void setDataEncryptionAlgorithm(@Nullable String uri)Set the encryption algorithm URI to use when encrypting the EncryptedData.- Parameters:
uri- an encryption algorithm URI
-
getKeyTransportEncryptionAlgorithm
@Nullable public String getKeyTransportEncryptionAlgorithm()
Get the encryption algorithm URI to use when encrypting the EncryptedKey.- Returns:
- an encryption algorithm URI
-
setKeyTransportEncryptionAlgorithm
public void setKeyTransportEncryptionAlgorithm(@Nullable String uri)Set the encryption algorithm URI to use when encrypting the EncryptedKey.- Parameters:
uri- an encryption algorithm URI
-
-