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>
public final class CertificateContext extends BaseContext
Context that carries aCertificateto 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
Fields Modifier and Type Field Description private CertificatecertificateThe certificate to be validated.private Collection<Certificate>intermediatesAdditional certificates as input to validation.
-
Constructor Summary
Constructors Constructor Description CertificateContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificategetCertificate()Get the certificate to be validated.Collection<Certificate>getIntermediates()Get any additional certificates accompanying the end-entity certificate.CertificateContextsetCertificate(Certificate cert)Set the certificate to be validated.CertificateContextsetIntermediates(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 Detail
-
certificate
@Nullable private Certificate certificate
The certificate to be validated.
-
intermediates
@Nonnull @NonnullElements private Collection<Certificate> intermediates
Additional certificates as input to validation.
-
-
Method Detail
-
getCertificate
@Nullable public Certificate getCertificate()
Get the certificate to be validated.- Returns:
- the certificate to be validated
-
setCertificate
@Nonnull public CertificateContext setCertificate(@Nullable Certificate cert)
Set the certificate to be validated.- Parameters:
cert- certificate to be validated- Returns:
- this context
-
getIntermediates
@Nonnull @NonnullElements @Live public Collection<Certificate> 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
-
-