Constructor and Description |
---|
SignatureKeyCallback(X500Principal authority)
Constructs this SignatureKeyCallback with an authority.
|
Modifier and Type | Method and 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.
|
public SignatureKeyCallback(X500Principal 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.
authority
- the X500Principal name of the root CA
certificate returned in the requested chain,
or nullpublic X500Principal getAuthority()
public void setKey(PrivateKey key, Certificate[] chain)
key
- the signing keychain
- the corresponding certificate chainpublic PrivateKey getKey()
public Certificate[] getChain()
Copyright © 2018. All rights reserved.