Class JWTAuthContextInfo

java.lang.Object
io.smallrye.jwt.auth.principal.JWTAuthContextInfo

public class JWTAuthContextInfo extends Object
The public key and expected issuer needed to validate a token.
  • Constructor Details

    • JWTAuthContextInfo

      public JWTAuthContextInfo()
    • JWTAuthContextInfo

      public JWTAuthContextInfo(PublicKey verificationKey, String issuedBy)
    • JWTAuthContextInfo

      public JWTAuthContextInfo(SecretKey verificationKey, String issuedBy)
    • JWTAuthContextInfo

      public JWTAuthContextInfo(String publicKeyLocation, String issuedBy)
    • JWTAuthContextInfo

      public JWTAuthContextInfo(JWTAuthContextInfo orig)
      Create an auth context from an JWTAuthContextInfo instance
      Parameters:
      orig - the original instance to copy
  • Method Details

    • getSignerKey

      @Deprecated public RSAPublicKey getSignerKey()
      Deprecated.
    • setSignerKey

      @Deprecated public void setSignerKey(RSAPublicKey signerKey)
      Deprecated.
    • getPublicVerificationKey

      public PublicKey getPublicVerificationKey()
    • setPublicVerificationKey

      public void setPublicVerificationKey(PublicKey verificationKey)
    • getSecretVerificationKey

      public SecretKey getSecretVerificationKey()
    • setSecretVerificationKey

      public void setSecretVerificationKey(SecretKey verificationKey)
    • getPrivateDecryptionKey

      public PrivateKey getPrivateDecryptionKey()
    • setPrivateDecryptionKey

      public void setPrivateDecryptionKey(PrivateKey decryptionKey)
    • getSecretDecryptionKey

      public SecretKey getSecretDecryptionKey()
    • setSecretDecryptionKey

      public void setSecretDecryptionKey(SecretKey decryptionKey)
    • getIssuedBy

      public String getIssuedBy()
    • setIssuedBy

      public void setIssuedBy(String issuedBy)
    • getExpGracePeriodSecs

      @Deprecated public int getExpGracePeriodSecs()
      Deprecated.
    • setExpGracePeriodSecs

      @Deprecated public void setExpGracePeriodSecs(int expGracePeriodSecs)
      Deprecated.
    • getMaxTimeToLiveSecs

      public Long getMaxTimeToLiveSecs()
    • setMaxTimeToLiveSecs

      public void setMaxTimeToLiveSecs(Long maxTimeToLiveSecs)
    • getPublicKeyLocation

      public String getPublicKeyLocation()
    • setPublicKeyLocation

      public void setPublicKeyLocation(String publicKeyLocation)
    • getDecryptionKeyLocation

      public String getDecryptionKeyLocation()
    • setDecryptionKeyLocation

      public void setDecryptionKeyLocation(String keyLocation)
    • getKeyEncryptionAlgorithm

      public Set<KeyEncryptionAlgorithm> getKeyEncryptionAlgorithm()
    • setKeyEncryptionAlgorithm

      public void setKeyEncryptionAlgorithm(Set<KeyEncryptionAlgorithm> algorithm)
    • getPublicKeyContent

      public String getPublicKeyContent()
    • setPublicKeyContent

      public void setPublicKeyContent(String publicKeyContent)
    • getSecretKeyContent

      public String getSecretKeyContent()
    • setSecretKeyContent

      public void setSecretKeyContent(String secretKeyContent)
    • getDecryptionKeyContent

      public String getDecryptionKeyContent()
    • setDecryptionKeyContent

      public void setDecryptionKeyContent(String keyContent)
    • getJwksRefreshInterval

      public Integer getJwksRefreshInterval()
    • setJwksRefreshInterval

      public void setJwksRefreshInterval(Integer jwksRefreshInterval)
    • getForcedJwksRefreshInterval

      public int getForcedJwksRefreshInterval()
    • setForcedJwksRefreshInterval

      public void setForcedJwksRefreshInterval(int forcedJwksRefreshInterval)
    • getJwksRetainCacheOnErrorDuration

      public int getJwksRetainCacheOnErrorDuration()
    • setJwksRetainCacheOnErrorDuration

      public void setJwksRetainCacheOnErrorDuration(int jwksRetainCacheOnErrorDuration)
    • getTokenHeader

      public String getTokenHeader()
    • setTokenHeader

      public void setTokenHeader(String tokenHeader)
    • getTokenCookie

      public String getTokenCookie()
    • setTokenCookie

      public void setTokenCookie(String tokenCookie)
    • isRequireNamedPrincipal

      public boolean isRequireNamedPrincipal()
    • setRequireNamedPrincipal

      public void setRequireNamedPrincipal(boolean requireNamedPrincipal)
    • getDefaultSubjectClaim

      public String getDefaultSubjectClaim()
    • setDefaultSubjectClaim

      public void setDefaultSubjectClaim(String defaultSubClaim)
    • getSubjectPath

      public String getSubjectPath()
    • setSubjectPath

      public void setSubjectPath(String subPath)
    • getDefaultGroupsClaim

      public String getDefaultGroupsClaim()
    • setDefaultGroupsClaim

      public void setDefaultGroupsClaim(String defaultGroupsClaim)
    • getGroupsPath

      public String getGroupsPath()
    • setGroupsPath

      public void setGroupsPath(String groupsPath)
    • getTokenKeyId

      public String getTokenKeyId()
    • setTokenKeyId

      public void setTokenKeyId(String tokenKeyId)
    • getTokenDecryptionKeyId

      public String getTokenDecryptionKeyId()
    • setTokenDecryptionKeyId

      public void setTokenDecryptionKeyId(String tokenKeyId)
    • getTokenSchemes

      public List<String> getTokenSchemes()
    • setTokenSchemes

      public void setTokenSchemes(List<String> tokenSchemes)
    • getExpectedAudience

      public Set<String> getExpectedAudience()
    • setExpectedAudience

      public void setExpectedAudience(Set<String> expectedAudience)
    • getGroupsSeparator

      public String getGroupsSeparator()
    • setGroupsSeparator

      public void setGroupsSeparator(String groupsSeparator)
    • getSignatureAlgorithm

      public Set<SignatureAlgorithm> getSignatureAlgorithm()
    • setSignatureAlgorithm

      public void setSignatureAlgorithm(Set<SignatureAlgorithm> signatureAlgorithm)
    • getKeyFormat

      public KeyFormat getKeyFormat()
    • setKeyFormat

      public void setKeyFormat(KeyFormat keyFormat)
    • getKeyProvider

      public KeyProvider getKeyProvider()
    • setKeyProvider

      public void setKeyProvider(KeyProvider keyProvider)
    • isAlwaysCheckAuthorization

      public boolean isAlwaysCheckAuthorization()
    • setAlwaysCheckAuthorization

      public void setAlwaysCheckAuthorization(boolean alwaysCheckAuthorization)
    • getRequiredClaims

      public Set<String> getRequiredClaims()
    • setRequiredClaims

      public void setRequiredClaims(Set<String> requiredClaims)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isRelaxVerificationKeyValidation

      public boolean isRelaxVerificationKeyValidation()
    • setRelaxVerificationKeyValidation

      public void setRelaxVerificationKeyValidation(boolean relaxVerificationKeyValidation)
    • isVerifyCertificateThumbprint

      public boolean isVerifyCertificateThumbprint()
    • setVerifyCertificateThumbprint

      public void setVerifyCertificateThumbprint(boolean verifyCertificateThumbprint)
    • getTlsCertificate

      public String getTlsCertificate()
    • setTlsCertificate

      public void setTlsCertificate(String tlsCertificate)
    • getTlsCertificatePath

      public String getTlsCertificatePath()
    • setTlsCertificatePath

      public void setTlsCertificatePath(String tlsCertificatePath)
    • getTlsTrustedHosts

      public Set<String> getTlsTrustedHosts()
    • setTlsTrustedHosts

      public void setTlsTrustedHosts(Set<String> tlsTrustedHosts)
    • setTlsTrustAll

      public void setTlsTrustAll(boolean tlsTrustAll)
    • isTlsTrustAll

      public boolean isTlsTrustAll()
    • getHttpProxyHost

      public String getHttpProxyHost()
    • setHttpProxyHost

      public void setHttpProxyHost(String httpProxyHost)
    • getHttpProxyPort

      public int getHttpProxyPort()
    • setHttpProxyPort

      public void setHttpProxyPort(int httpProxyPort)
    • getTokenAge

      public Long getTokenAge()
    • setTokenAge

      public void setTokenAge(Long tokenAge)
    • getClockSkew

      public int getClockSkew()
    • setClockSkew

      public void setClockSkew(int clockSkew)
    • getKeyCacheTimeToLive

      public int getKeyCacheTimeToLive()
    • setKeyCacheTimeToLive

      public void setKeyCacheTimeToLive(int keyCacheTimeToLive)
    • getKeyCacheSize

      public int getKeyCacheSize()
    • setKeyCacheSize

      public void setKeyCacheSize(int keyCacheSize)