Tabnine Logo
SPSSODescriptor.getValidUntil
Code IndexAdd Tabnine to your IDE (free)

How to use
getValidUntil
method
in
org.opensaml.saml.saml2.metadata.SPSSODescriptor

Best Java code snippets using org.opensaml.saml.saml2.metadata.SPSSODescriptor.getValidUntil (Showing top 3 results out of 315)

origin: org.apereo.cas/cas-server-support-saml-idp-core

public ZonedDateTime getValidUntil() {
  return DateTimeUtils.zonedDateTimeOf(this.ssoDescriptor.getValidUntil());
}
origin: org.apereo.cas/cas-server-support-saml-idp-core

private static Optional<SamlRegisteredServiceServiceProviderMetadataFacade> getServiceProviderSsoDescriptor(final String entityID,
                                                      final MetadataResolver chainingMetadataResolver,
                                                      final EntityDescriptor entityDescriptor) {
  val ssoDescriptor = entityDescriptor.getSPSSODescriptor(SAMLConstants.SAML20P_NS);
  if (ssoDescriptor != null) {
    LOGGER.debug("Located SP SSODescriptor in metadata for [{}]. Metadata is valid until [{}]", entityID,
      ObjectUtils.defaultIfNull(ssoDescriptor.getValidUntil(), "forever"));
    if (ssoDescriptor.getValidUntil() != null && ssoDescriptor.getValidUntil().isBeforeNow()) {
      LOGGER.warn("SP SSODescriptor in the metadata has expired at [{}]", ssoDescriptor.getValidUntil());
      return Optional.empty();
    }
    return Optional.of(new SamlRegisteredServiceServiceProviderMetadataFacade(ssoDescriptor, entityDescriptor,
      chainingMetadataResolver));
  }
  LOGGER.warn("Could not locate SP SSODescriptor in the metadata for [{}]", entityID);
  return Optional.empty();
}
origin: spring-projects/spring-security-saml

ServiceProvider provider = new ServiceProvider();
provider.setId(desc.getID());
provider.setValidUntil(desc.getValidUntil());
if (desc.getCacheDuration() != null) {
  provider.setCacheDuration(toDuration(desc.getCacheDuration()));
org.opensaml.saml.saml2.metadataSPSSODescriptorgetValidUntil

Popular methods of SPSSODescriptor

  • getAssertionConsumerServices
    Gets an list of assertion consumer service Endpoints for this service.
  • getKeyDescriptors
  • getNameIDFormats
  • getSingleLogoutServices
  • setAuthnRequestsSigned
    Sets whether this service signs AuthN requests.
  • setWantAssertionsSigned
    Sets whether this service wants assertions signed.
  • addSupportedProtocol
  • getAttributeConsumingServices
    Gets an list of attribute consuming service descriptors for this service.
  • isAuthnRequestsSigned
    Gets whether this service signs AuthN requests.
  • getWantAssertionsSigned
    Gets whether this service wants assertions signed.
  • getExtensions
  • getCacheDuration
  • getExtensions,
  • getCacheDuration,
  • getDefaultAttributeConsumingService,
  • getEndpoints,
  • getOrganization,
  • getSupportedProtocols,
  • getArtifactResolutionServices,
  • getContactPersons,
  • getDefaultAssertionConsumerService

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Join (org.hibernate.mapping)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now