public class CryptoType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CryptoType.TYPE
TYPE.ISSUER_SERIAL - A certificate (chain) is located by the issuer name and serial number
TYPE.THUMBPRINT_SHA1 - A certificate (chain) is located by the SHA1 of the (root) cert
TYPE.SKI_BYTES - A certificate (chain) is located by the SKI bytes of the (root) cert
TYPE.SUBJECT_DN - A certificate (chain) is located by the Subject DN of the (root) cert
TYPE.ALIAS - A certificate (chain) is located by an alias.
|
Constructor and Description |
---|
CryptoType()
Default constructor
|
CryptoType(CryptoType.TYPE type)
Constructor with a TYPE argument
|
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Get the alias of the cert (chain) to locate.
|
byte[] |
getBytes()
Get the array of bytes, which could be the SHA1 thumbprint, or SKI bytes of the cert.
|
String |
getEndpoint()
Get the endpoint to locate certificate.
|
String |
getIssuer()
Get the issuer String.
|
BigInteger |
getSerial()
Get the serial number
|
String |
getSubjectDN()
Get the Subject DN of the cert (chain) to locate
|
CryptoType.TYPE |
getType()
Get the type
|
void |
setAlias(String alias)
Set the alias of the cert (chain) to locate.
|
void |
setBytes(byte[] bytes)
Set the byte[], which could be the SHA1 thumbprint, or SKI bytes of the cert.
|
void |
setEndpoint(String endpoint)
Set the endpoint to locate certificate.
|
void |
setIssuerSerial(String issuer,
BigInteger serial)
Set the Issuer String, and Serial number of the cert (chain) to retrieve.
|
void |
setSubjectDN(String subjectDN)
Set the Subject DN of the cert (chain) to locate
|
void |
setType(CryptoType.TYPE type)
Set the type.
|
public CryptoType()
public CryptoType(CryptoType.TYPE type)
type
- describes which method to use to retrieve a certificate (chain)public void setType(CryptoType.TYPE type)
type
- describes which method to use to retrieve a certificate (chain)public CryptoType.TYPE getType()
public void setIssuerSerial(String issuer, BigInteger serial)
issuer
- the issuer Stringserial
- the serial numberpublic String getIssuer()
public BigInteger getSerial()
public void setBytes(byte[] bytes)
bytes
- an array of bytespublic byte[] getBytes()
public void setSubjectDN(String subjectDN)
subjectDN
- the Subject DN of the cert (chain) to locatepublic String getSubjectDN()
public void setAlias(String alias)
alias
- the alias of the cert (chain) to locate.public String getAlias()
public void setEndpoint(String endpoint)
endpoint
- to locate.public String getEndpoint()
Copyright © 2017 JBoss by Red Hat. All rights reserved.