Class ExpiringSAMLArtifactMapEntry

    • Field Detail

      • expiration

        @Nullable
        private Instant expiration
        Expiration time.
    • Constructor Detail

      • ExpiringSAMLArtifactMapEntry

        public ExpiringSAMLArtifactMapEntry​(@Nonnull @NotEmpty
                                            String samlArtifact,
                                            @Nonnull @NotEmpty
                                            String issuerId,
                                            @Nonnull @NotEmpty
                                            String relyingPartyId,
                                            @Nonnull
                                            SAMLObject samlMessage)
                                     throws org.opensaml.core.xml.io.MarshallingException,
                                            org.opensaml.core.xml.io.UnmarshallingException
        Constructor.
        Parameters:
        samlArtifact - artifact associated with the message
        issuerId - issuer of the artifact
        relyingPartyId - intended recipient of the artifact
        samlMessage - SAML message mapped to the artifact
        Throws:
        org.opensaml.core.xml.io.MarshallingException - if an error occurs isolating a message from its parent
        org.opensaml.core.xml.io.UnmarshallingException - if an error occurs isolating a message from its parent
    • Method Detail

      • getExpiration

        @Nullable
        public Instant getExpiration()
        Returns the expiration time.
        Returns:
        the expiration
      • setExpiration

        public void setExpiration​(@Nullable
                                  Instant exp)
        Sets the expiration time.
        Parameters:
        exp - the expiration
      • isValid

        public boolean isValid()
        Returns true iff the entry is valid as of now.
        Returns:
        true iff the entry is valid as of now
      • isValid

        public boolean isValid​(@Nonnull
                               Instant effectiveTime)
        Returns true iff the entry is valid as of a specified time.
        Parameters:
        effectiveTime - the time to evaluate validity against
        Returns:
        true iff the entry is valid as of a specified time