Package net.shibboleth.idp.authn.context
Class CertificateContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.authn.context.CertificateContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context that carries a
Certificate to be validated.- Parent:
AuthenticationContext- Added:
- After extraction of a certificate during authentication
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CertificateThe certificate to be validated.private Collection<Certificate>Additional certificates as input to validation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the certificate to be validated.Get any additional certificates accompanying the end-entity certificate.setCertificate(Certificate cert) Set the certificate to be validated.setIntermediates(Collection<Certificate> certs) Set the additional certificates accompanying the end-entity certificate.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
certificate
The certificate to be validated. -
intermediates
Additional certificates as input to validation.
-
-
Constructor Details
-
CertificateContext
public CertificateContext()Constructor.
-
-
Method Details
-
getCertificate
Get the certificate to be validated.- Returns:
- the certificate to be validated
-
setCertificate
Set the certificate to be validated.- Parameters:
cert- certificate to be validated- Returns:
- this context
-
getIntermediates
Get any additional certificates accompanying the end-entity certificate.- Returns:
- any additional certificates
-
setIntermediates
Set the additional certificates accompanying the end-entity certificate.- Parameters:
certs- additional certificates- Returns:
- this context
-