public class CapiIdentity
extends java.lang.Object
This class cannot be instantiated directly. An instance can only be obtained by
calling the method CapiIdentities.findIdentities(), and iterating
over the result.
A CapiIdentity is formed by grouping together certificates which belong to the same identity in the Certification Authority. The matching of certificates to an identity is done by private key container name, which have specific naming rules.
CapiIdentities| Modifier and Type | Class and Description |
|---|---|
static class |
CapiIdentity.Format
An MSCAPI-based digital identity format.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<CapiCertificateAndKeyInfo> |
getCertificateAndKeyInfo()
Returns an unmodifiable collection of
CapiCertificateAndKeyInfos |
X509Certificate[] |
getChainToRoot() |
CapiContainerName |
getContainerName()
Returns a key container name associated with this identity.
|
Name |
getDistinguishedIssuerName()
Returns the distinguished name of the issuer of this Identity
This is the issuer name of the newest certificate associated
with this identity.
|
Name |
getDistinguishedName()
Returns the distinguished name of this identity.
|
CapiIdentity.Format |
getFormat()
Returns the MSCAPI-based digital identity format.
|
java.lang.String |
getIssuerName()
Returns the name of the issuer of this identity.
|
java.lang.String |
getName()
Returns the name of this identity.
|
boolean |
isUnverifiedIdentity() |
void |
setChainToRoot(X509Certificate[] chainToRoot)
This method is for injecting the chainToRoot into the CapiIdentity.
|
public java.lang.String getName()
getDistinguishedName().toString().Stringpublic java.lang.String getIssuerName()
getDistinguishedIssuerName().toString().Stringpublic Name getDistinguishedName()
public Name getDistinguishedIssuerName()
public CapiContainerName getContainerName()
public java.util.Collection<CapiCertificateAndKeyInfo> getCertificateAndKeyInfo()
CapiCertificateAndKeyInfosCapiCertificateAndKeyInfospublic boolean isUnverifiedIdentity()
public void setChainToRoot(X509Certificate[] chainToRoot)
chainToRoot - The chain of CA certificates to the self-signed rootpublic X509Certificate[] getChainToRoot()
public CapiIdentity.Format getFormat()