public interface ConcurrentContentSigner extends Closeable
ContentSigner.| Modifier and Type | Method and Description |
|---|---|
ConcurrentBagEntrySigner |
borrowSigner()
Borrows a signer with implementation-dependent default timeout.
|
ConcurrentBagEntrySigner |
borrowSigner(int soTimeout)
Borrows a signer with the given
soTimeout. |
AlgorithmCode |
getAlgorithmCode()
Returns the algorithm code in XiPKI context.
|
String |
getAlgorithmName() |
X509Cert |
getCertificate() |
X509Cert[] |
getCertificateChain() |
String |
getName() |
PublicKey |
getPublicKey() |
byte[] |
getSha1OfMacKey() |
Key |
getSigningKey()
Get the signing key.
|
void |
initialize(String conf,
org.xipki.password.PasswordResolver passwordResolver)
Initializes me.
|
boolean |
isHealthy() |
boolean |
isMac() |
void |
requiteSigner(ConcurrentBagEntrySigner signer) |
void |
setCertificateChain(X509Cert[] certchain)
Set the CertificateChain.
|
void |
setPublicKey(PublicKey publicKey)
Sets the public key.
|
byte[] |
sign(byte[] data)
Sign the data.
|
byte[][] |
sign(byte[][] data)
Sign the data.
|
String getName()
String getAlgorithmName()
AlgorithmCode getAlgorithmCode()
boolean isMac()
byte[] getSha1OfMacKey()
Key getSigningKey()
null may be returned.void setPublicKey(PublicKey publicKey)
publicKey - Public key of this signer. Must not be null.PublicKey getPublicKey()
X509Cert getCertificate()
void setCertificateChain(X509Cert[] certchain)
certchain - Certificate chain of this signer. Could be null.X509Cert[] getCertificateChain()
void initialize(String conf, org.xipki.password.PasswordResolver passwordResolver) throws XiSecurityException
conf - Configuration. Could be null.passwordResolver - Password resolver. Could be null.XiSecurityException - if error during the initialization occurs.byte[] sign(byte[] data)
throws NoIdleSignerException,
SignatureException
data - Data to be signed. Must not be null.NoIdleSignerException - If no idle signer is availableSignatureException - if could not sign the data.byte[][] sign(byte[][] data)
throws NoIdleSignerException,
SignatureException
data - Data to be signed. Must not be null.NoIdleSignerException - If no idle signer is availableSignatureException - if could not sign the data.ConcurrentBagEntrySigner borrowSigner() throws NoIdleSignerException
NoIdleSignerException - If no idle signer is availableConcurrentBagEntrySigner borrowSigner(int soTimeout) throws NoIdleSignerException
soTimeout.soTimeout - timeout in milliseconds, 0 for infinitely.NoIdleSignerException - If no idle signer is availablevoid requiteSigner(ConcurrentBagEntrySigner signer)
boolean isHealthy()
Copyright © 2020. All rights reserved.