public class CertificateKeyProvider extends KeypairProvider
Modifier and Type | Field and Description |
---|---|
private java.security.cert.X509Certificate |
cert |
AES_ALGORITHMS, DSA_ALGORITHMS, RSA_ALGORITHMS, TRIPLEDES_ALGORITHMS
Constructor and Description |
---|
CertificateKeyProvider(BinarySecurityToken bst,
java.lang.String name,
java.lang.String uri) |
CertificateKeyProvider(java.security.cert.X509Certificate cert,
java.security.PrivateKey privKey,
java.lang.String name,
java.lang.String uri) |
Modifier and Type | Method and Description |
---|---|
KeyResult |
getKeyByIssuerSerial(java.lang.String issuerName,
java.math.BigInteger serial,
java.lang.String alg,
KeyPurpose purpose) |
KeyResult |
getKeyBySubjectName(java.lang.String subjectName,
java.lang.String alg,
KeyPurpose purpose) |
protected KeyResult |
getResult(java.security.Key key) |
getKey
getIdentifier, getKeyByIdentifier, getKeyByName, getKeyByURI, getName, getUri, toString
public CertificateKeyProvider(java.security.cert.X509Certificate cert, java.security.PrivateKey privKey, java.lang.String name, java.lang.String uri)
public CertificateKeyProvider(BinarySecurityToken bst, java.lang.String name, java.lang.String uri)
public KeyResult getKeyBySubjectName(java.lang.String subjectName, java.lang.String alg, KeyPurpose purpose)
getKeyBySubjectName
in interface KeyProvider
getKeyBySubjectName
in class BaseKeyProvider
public KeyResult getKeyByIssuerSerial(java.lang.String issuerName, java.math.BigInteger serial, java.lang.String alg, KeyPurpose purpose)
getKeyByIssuerSerial
in interface KeyProvider
getKeyByIssuerSerial
in class BaseKeyProvider
protected KeyResult getResult(java.security.Key key)
getResult
in class KeypairProvider