Package org.opensaml.security.x509.tls
Class CertificateNameOptions
java.lang.Object
org.opensaml.security.x509.tls.CertificateNameOptions
- All Implemented Interfaces:
Cloneable
Options for deriving message context issuer names from an client TLS X.509 certificate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Evaluate the certificate subject DN's common name (CN) as a derived issuer entity ID.private boolean
Evaluate the certificate subject DN as a derived issuer entity ID.The set of types of subject alternative names evaluate as derived issuer entity ID names.private X500DNHandler
Responsible for serializing X.500 names to strings from certificate-derivedX500Principal
instances.private String
The format specifier for serializing X.500 subject names to strings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Get whether to evaluate the certificate subject DN's common name (CN) as a derived issuer entity ID.boolean
Get whether to evaluate the certificate subject DN as a derived issuer entity ID.Get the set of types of subject alternative names evaluate as derived issuer entity ID names, using integer constants defined inX509Support
.Get the handler responsible for serializing X.500 names to strings from certificate-derivedX500Principal
instances.Get the format specifier for serializing X.500 subject names to strings.void
setEvaluateSubjectCommonName
(boolean flag) Set whether to evaluate the certificate subject DN's common name (CN) as a derived issuer entity ID.void
setEvaluateSubjectDN
(boolean flag) Set whether to evaluate the certificate subject DN as a derived issuer entity ID.void
setSubjectAltNames
(Set<Integer> names) Set the set of types of subject alternative names evaluate as derived issuer entity ID names, using integer constants defined inX509Support
.void
setX500DNHandler
(X500DNHandler handler) Set the handler responsible for serializing X.500 names to strings from certificate-derivedX500Principal
instances.void
setX500SubjectDNFormat
(String format) Set the format specifier for serializing X.500 subject names to strings.
-
Field Details
-
evaluateSubjectDN
private boolean evaluateSubjectDNEvaluate the certificate subject DN as a derived issuer entity ID. -
evaluateSubjectCommonName
private boolean evaluateSubjectCommonNameEvaluate the certificate subject DN's common name (CN) as a derived issuer entity ID. -
subjectAltNames
The set of types of subject alternative names evaluate as derived issuer entity ID names. -
x500DNHandler
Responsible for serializing X.500 names to strings from certificate-derivedX500Principal
instances. -
x500SubjectDNFormat
The format specifier for serializing X.500 subject names to strings.
-
-
Constructor Details
-
CertificateNameOptions
public CertificateNameOptions()Constructor.
-
-
Method Details
-
evaluateSubjectCommonName
public boolean evaluateSubjectCommonName()Get whether to evaluate the certificate subject DN's common name (CN) as a derived issuer entity ID.- Returns:
- Returns the evaluateSubjectCommonName.
-
setEvaluateSubjectCommonName
public void setEvaluateSubjectCommonName(boolean flag) Set whether to evaluate the certificate subject DN's common name (CN) as a derived issuer entity ID.- Parameters:
flag
- new new evaluateSubjectCommonName value.
-
evaluateSubjectDN
public boolean evaluateSubjectDN()Get whether to evaluate the certificate subject DN as a derived issuer entity ID.- Returns:
- Returns the evaluateSubjectDN.
-
setEvaluateSubjectDN
public void setEvaluateSubjectDN(boolean flag) Set whether to evaluate the certificate subject DN as a derived issuer entity ID.- Parameters:
flag
- the new evaluateSubjectDN value.
-
getSubjectAltNames
Get the set of types of subject alternative names evaluate as derived issuer entity ID names, using integer constants defined inX509Support
.- Returns:
- Returns the subjectAltNames.
-
setSubjectAltNames
Set the set of types of subject alternative names evaluate as derived issuer entity ID names, using integer constants defined inX509Support
.- Parameters:
names
- the set of types of subject alternative names
-
getX500DNHandler
Get the handler responsible for serializing X.500 names to strings from certificate-derivedX500Principal
instances.- Returns:
- Returns the x500DNHandler.
-
setX500DNHandler
Set the handler responsible for serializing X.500 names to strings from certificate-derivedX500Principal
instances.- Parameters:
handler
- the new x500DNHandler value.
-
getX500SubjectDNFormat
Get the format specifier for serializing X.500 subject names to strings.- Returns:
- Returns the x500SubjectDNFormat.
-
setX500SubjectDNFormat
Set the format specifier for serializing X.500 subject names to strings.- Parameters:
format
- the new x500SubjectDNFormat value.
-
clone
-