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 a Certificate to be validated.
Parent:
AuthenticationContext
Added:
After extraction of a certificate during authentication
  • Field Details

  • Constructor Details

    • CertificateContext

      public CertificateContext()
      Constructor.
  • Method Details

    • 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