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 String
ASYMMETRIC_KEY
static String
SYMMETRIC_KEY
-
Constructor Summary
Constructors Constructor Description SecurityContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDecryptionAlias()
Returns the certificate alias for the decryption.Key
getDecryptionKey()
Returns the decryption key.Key
getEncryptionKey()
Returns the encryption keyString
getEncryptionKeyAlias()
Returns the encryption key alias.String
getKeyType()
Returns the key type.String
getSigningCertAlias()
Return the signing certificate aliasKey
getSigningKey()
Returns the signing key.String
getSigningRef()
Returns the signing reference type.String
getVerificationCertAlias()
Returns the signature verification certificate alias.Key
getVerificationKey()
Returns the signature verification key.void
setDecryptionAlias(String alias)
Sets the certificate alias for the decryption.void
setDecryptionKey(Key decryptionKey)
Sets the decryption keyvoid
setEncryptionKey(Key encryptionKey)
void
setEncryptionKeyAlias(String alias)
Sets the encryption key alias.void
setKeyType(String keyType)
Sets the key type.void
setSigningCertAlias(String alias)
Sets the signing certificate alias.void
setSigningKey(Key signingKey)
Sets the signing keyvoid
setSigningRef(String signingRef)
Sets the signing reference type.void
setVerificationCertAlias(String alias)
Sets the signature certificate aliasvoid
setVerificationKey(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.
-
-