Class TXRecord

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.DateComparable, edu.uiuc.ncsa.security.core.Identifiable, Serializable, Cloneable

    public class TXRecord
    extends edu.uiuc.ncsa.security.core.util.IdentifiableImpl
    implements edu.uiuc.ncsa.security.core.DateComparable

    Created by Jeff Gaynor
    on 12/14/20 at 8:54 AM

    See Also:
    Serialized Form
    • Constructor Detail

      • TXRecord

        public TXRecord​(edu.uiuc.ncsa.security.core.Identifier identifier)
    • Method Detail

      • getCreationTS

        public Date getCreationTS()
        Specified by:
        getCreationTS in interface edu.uiuc.ncsa.security.core.DateComparable
      • getStoredToken

        public String getStoredToken()
        The actual token (including any encodings, signatures etc.) returned to the user.
        Returns:
      • setStoredToken

        public void setStoredToken​(String storedToken)
      • getParentID

        public edu.uiuc.ncsa.security.core.Identifier getParentID()
      • setParentID

        public void setParentID​(edu.uiuc.ncsa.security.core.Identifier parentID)
      • getLifetime

        public long getLifetime()
      • setLifetime

        public void setLifetime​(long lifetime)
      • getIssuedAt

        public long getIssuedAt()
      • setIssuedAt

        public void setIssuedAt​(long issuedAt)
      • getExpiresAt

        public long getExpiresAt()
      • setExpiresAt

        public void setExpiresAt​(long expiresAt)
      • isValid

        public boolean isValid()
      • setValid

        public void setValid​(boolean valid)
      • getTokenType

        public String getTokenType()
        The requested token type from the TX request.
        Returns:
      • setTokenType

        public void setTokenType​(String tokenType)
      • setScopes

        public void setScopes​(Collection<String> newScopes)
        Convenience method. Just got tired of translating this
        Parameters:
        newScopes -
      • setScopes

        public void setScopes​(List<String> scopes)
      • hasAudience

        public boolean hasAudience()
      • setAudience

        public void setAudience​(List<String> audience)
      • getIssuer

        public String getIssuer()
      • setIssuer

        public void setIssuer​(String issuer)
      • getResource

        public List<URI> getResource()
      • setResource

        public void setResource​(List<URI> resource)
      • hasResources

        public boolean hasResources()
      • hasScopes

        public boolean hasScopes()
      • getErsatzClient

        public OA2Client getErsatzClient()
      • setErsatzClient

        public void setErsatzClient​(OA2Client ersatzClient)