Class KERecord

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

    public class KERecord
    extends edu.uiuc.ncsa.security.storage.monitored.Monitored
    Store entry that models a single JWK key. It contains all the administrative information for the key, as well as the actual key itself.

    Each key has a VI (no VI means default). Much of this is usually also in the key itself, but pulling it out allows for searching and better management.

    See Also:
    Serialized Form
    • Field Detail

      • isValid

        protected Boolean isValid
      • exp

        protected Date exp
      • iat

        protected Date iat
      • isDefault

        protected Boolean isDefault
      • jwk

        protected edu.uiuc.ncsa.security.util.jwk.JSONWebKey jwk
      • nbf

        protected Date nbf
      • vi

        protected URI vi
    • Constructor Detail

      • KERecord

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

      • getAlg

        public String getAlg()
      • setAlg

        public void setAlg​(String alg)
      • getValid

        public Boolean getValid()
      • setValid

        public void setValid​(Boolean valid)
      • getExp

        public Date getExp()
      • setExp

        public void setExp​(Date exp)
      • getIat

        public Date getIat()
      • setIat

        public void setIat​(Date iat)
      • getDefault

        public Boolean getDefault()
      • setDefault

        public void setDefault​(Boolean aDefault)
      • getJwk

        public edu.uiuc.ncsa.security.util.jwk.JSONWebKey getJwk()
        Gets the stored version of this key with little or no acocunting information. Use the toJWK() to convert this record to a usuable JWK.
        Returns:
      • setJwk

        public void setJwk​(edu.uiuc.ncsa.security.util.jwk.JSONWebKey jwk)
      • getKid

        public String getKid()
      • setKid

        public void setKid​(String kid)
      • getKty

        public String getKty()
      • setKty

        public void setKty​(String kty)
      • getNbf

        public Date getNbf()
      • setNbf

        public void setNbf​(Date nbf)
      • getUse

        public String getUse()
      • setUse

        public void setUse​(String use)
      • getVi

        public URI getVi()
      • setVi

        public void setVi​(URI vi)
      • hasVI

        public boolean hasVI()
        If there is a virtual issuer set. No VI means this is in the default issuer.
        Returns:
      • isExpired

        public boolean isExpired()
        Has the exp date of this record passed? True if expired.
        Returns:
      • hasValidDate

        public boolean hasValidDate()
        Checks that the nbf (not before) date has passed
        Returns: