public class SANCertificateIdentityMapping extends Object implements CertificateIdentityMapping
Modifier and Type | Field and Description |
---|---|
static String |
OTHERNAME_SRV_OID
id-on-dnsSRV Object Identifier.
|
static String |
OTHERNAME_XMPP_OID
id-on-xmppAddr Object Identifier.
|
Constructor and Description |
---|
SANCertificateIdentityMapping() |
Modifier and Type | Method and Description |
---|---|
List<String> |
mapIdentity(X509Certificate certificate)
Returns the JID representation of an XMPP entity contained as a SubjectAltName extension
in the certificate.
|
String |
name()
Returns the short name of mapping.
|
static String |
parseOtherName(byte[] item)
Parses the byte-array representation of a subjectAltName 'otherName' entry.
|
static String |
parseOtherNameDnsSrv(org.bouncycastle.asn1.ASN1Primitive srvName)
Parses a SRVName value as specified by RFC 4985.
|
static String |
parseOtherNameXmppAddr(org.bouncycastle.asn1.ASN1Primitive xmppAddr)
Parse a XmppAddr value as specified in RFC 6120.
|
public static final String OTHERNAME_XMPP_OID
public static final String OTHERNAME_SRV_OID
public List<String> mapIdentity(X509Certificate certificate)
mapIdentity
in interface CertificateIdentityMapping
certificate
- the certificate presented by the remote entity.public String name()
name
in interface CertificateIdentityMapping
public static String parseOtherName(byte[] item)
OtherName ::= SEQUENCE {
type-id OBJECT IDENTIFIER,
value [0] EXPLICIT ANY DEFINED BY type-id }
item
- A byte array representation of a subjectAltName 'otherName' entry (cannot be null).public static String parseOtherNameDnsSrv(org.bouncycastle.asn1.ASN1Primitive srvName)
srvName
- The ASN.1 representation of the srvName value (cannot be null).public static String parseOtherNameXmppAddr(org.bouncycastle.asn1.ASN1Primitive xmppAddr)
xmppAddr
- The ASN.1 representation of the xmppAddr value (cannot be null).Copyright © 2003-2008 Jive Software.