Class SignatureKeyCallback
- java.lang.Object
-
- com.sun.enterprise.security.jauth.callback.SignatureKeyCallback
-
-
Constructor Summary
Constructors Constructor Description SignatureKeyCallback(X500Principal authority)
Constructs this SignatureKeyCallback with an authority.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X500Principal
getAuthority()
Get the authority.Certificate[]
getChain()
Get the certificate chain.PrivateKey
getKey()
Get the requested signing key.void
setKey(PrivateKey key, Certificate[] chain)
Set the requested signing key.
-
-
-
Constructor Detail
-
SignatureKeyCallback
public SignatureKeyCallback(X500Principal authority)
Constructs this SignatureKeyCallback with an authority.Both a PrivateKey and corresponding certificate chain will be returned. The authority input parameter specifies the X500Principal name of the root CA certificate returned in the chain. An authority does not have to be specified.
- Parameters:
authority
- the X500Principal name of the root CA certificate returned in the requested chain, or null
-
-
Method Detail
-
getAuthority
public X500Principal getAuthority()
Get the authority.- Returns:
- the authority, or null
-
setKey
public void setKey(PrivateKey key, Certificate[] chain)
Set the requested signing key.- Parameters:
key
- the signing keychain
- the corresponding certificate chain
-
getKey
public PrivateKey getKey()
Get the requested signing key.- Returns:
- the signing key
-
getChain
public Certificate[] getChain()
Get the certificate chain.- Returns:
- the certificate chain
-
-