Class SecurityContext
- java.lang.Object
-
- com.sun.identity.wss.security.handler.SecurityContext
-
public class SecurityContext extends Object
This class represents the security context for signing/verification and encryption/decryption etc.
-
-
Field Summary
Fields Modifier and Type Field Description static StringASYMMETRIC_KEYstatic StringSYMMETRIC_KEY
-
Constructor Summary
Constructors Constructor Description SecurityContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDecryptionAlias()Returns the certificate alias for the decryption.KeygetDecryptionKey()Returns the decryption key.KeygetEncryptionKey()Returns the encryption keyStringgetEncryptionKeyAlias()Returns the encryption key alias.StringgetKeyType()Returns the key type.StringgetSigningCertAlias()Return the signing certificate aliasKeygetSigningKey()Returns the signing key.StringgetSigningRef()Returns the signing reference type.StringgetVerificationCertAlias()Returns the signature verification certificate alias.KeygetVerificationKey()Returns the signature verification key.voidsetDecryptionAlias(String alias)Sets the certificate alias for the decryption.voidsetDecryptionKey(Key decryptionKey)Sets the decryption keyvoidsetEncryptionKey(Key encryptionKey)voidsetEncryptionKeyAlias(String alias)Sets the encryption key alias.voidsetKeyType(String keyType)Sets the key type.voidsetSigningCertAlias(String alias)Sets the signing certificate alias.voidsetSigningKey(Key signingKey)Sets the signing keyvoidsetSigningRef(String signingRef)Sets the signing reference type.voidsetVerificationCertAlias(String alias)Sets the signature certificate aliasvoidsetVerificationKey(Key verificationKey)Sets the signature verification key
-
-
-
Field Detail
-
SYMMETRIC_KEY
public static final String SYMMETRIC_KEY
- See Also:
- Constant Field Values
-
ASYMMETRIC_KEY
public static final String ASYMMETRIC_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSigningKey
public Key getSigningKey()
Returns the signing key.- Returns:
- the signing key.
-
setSigningKey
public void setSigningKey(Key signingKey)
Sets the signing key- Parameters:
signingKey- the signing key
-
getVerificationKey
public Key getVerificationKey()
Returns the signature verification key.- Returns:
- the signature verification key.
-
setVerificationKey
public void setVerificationKey(Key verificationKey)
Sets the signature verification key- Parameters:
verificationKey- signature verification key
-
getEncryptionKey
public Key getEncryptionKey()
Returns the encryption key- Returns:
- the encryption key
-
setEncryptionKey
public void setEncryptionKey(Key encryptionKey)
-
getDecryptionKey
public Key getDecryptionKey()
Returns the decryption key. return the decryption key.
-
setDecryptionKey
public void setDecryptionKey(Key decryptionKey)
Sets the decryption key- Parameters:
decryptionKey- the decryption key
-
getKeyType
public String getKeyType()
Returns the key type. The possible types are SYMMETRIC_KEY or ASYMMETRIC_KEY.- Returns:
- the key type.
-
setKeyType
public void setKeyType(String keyType)
Sets the key type.- Parameters:
keyType- the key type.
-
getSigningCertAlias
public String getSigningCertAlias()
Return the signing certificate alias- Returns:
- the signing certificate alias
-
setSigningCertAlias
public void setSigningCertAlias(String alias)
Sets the signing certificate alias.- Parameters:
alias- the signature certificate alias.
-
getVerificationCertAlias
public String getVerificationCertAlias()
Returns the signature verification certificate alias.- Returns:
- the signature verification certificate alias.
-
setVerificationCertAlias
public void setVerificationCertAlias(String alias)
Sets the signature certificate alias- Parameters:
alias- the signature certificate alias
-
getEncryptionKeyAlias
public String getEncryptionKeyAlias()
Returns the encryption key alias.- Returns:
- the encryption key alias.
-
setEncryptionKeyAlias
public void setEncryptionKeyAlias(String alias)
Sets the encryption key alias.- Parameters:
alias- the encryption key alias.
-
getDecryptionAlias
public String getDecryptionAlias()
Returns the certificate alias for the decryption.- Returns:
- the decryption certificate alias.
-
setDecryptionAlias
public void setDecryptionAlias(String alias)
Sets the certificate alias for the decryption.- Parameters:
alias- the certificate alias for the decryption.
-
getSigningRef
public String getSigningRef()
Returns the signing reference type.- Returns:
- the signing reference type.
-
setSigningRef
public void setSigningRef(String signingRef)
Sets the signing reference type.- Parameters:
signingRef- the signing reference type.
-
-