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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Certificate
The 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, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
@Nonnull public CertificateContext setIntermediates(@Nonnull @NonnullElements Collection<Certificate> certs) Set the additional certificates accompanying the end-entity certificate.- Parameters:
certs
- additional certificates- Returns:
- this context
-