Class AbstractJwtHandler
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
-
- org.apache.cxf.rs.security.oauth2.grants.jwt.AbstractJwtHandler
-
- All Implemented Interfaces:
AccessTokenGrantHandler
- Direct Known Subclasses:
JwtBearerGrantHandler
public abstract class AbstractJwtHandler extends AbstractGrantHandler
The "JWT Bearer" grant handler
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
LOG
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJwtHandler(List<String> grants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAudience()intgetClockOffset()protected JwsSignatureVerifiergetInitializedSigVerifier(JwsHeaders headers)intgetTtl()voidsetAudience(String audience)voidsetClockOffset(int clockOffset)voidsetJwsVerifier(JwsSignatureVerifier jwsVerifier)voidsetSupportedIssuers(Set<String> supportedIssuers)voidsetTtl(int ttl)protected voidvalidateClaims(Client client, JwtClaims claims)protected voidvalidateIssuer(String issuer)protected voidvalidateSignature(JwsHeaders headers, String unsignedText, byte[] signature)protected voidvalidateSubject(Client client, String subject)-
Methods inherited from class org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, getApprovedScopes, getAudiences, getDataProvider, getPreAuthorizedToken, getSingleGrantType, getSupportedGrantTypes, isCanSupportPublicClients, isPartialMatchScopeValidation, setCanSupportPublicClients, setDataProvider, setPartialMatchScopeValidation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.rs.security.oauth2.provider.AccessTokenGrantHandler
createAccessToken
-
-
-
-
Method Detail
-
validateSignature
protected void validateSignature(JwsHeaders headers, String unsignedText, byte[] signature)
-
validateIssuer
protected void validateIssuer(String issuer)
-
setJwsVerifier
public void setJwsVerifier(JwsSignatureVerifier jwsVerifier)
-
getInitializedSigVerifier
protected JwsSignatureVerifier getInitializedSigVerifier(JwsHeaders headers)
-
getTtl
public int getTtl()
-
setTtl
public void setTtl(int ttl)
-
getClockOffset
public int getClockOffset()
-
setClockOffset
public void setClockOffset(int clockOffset)
-
getAudience
public String getAudience()
-
setAudience
public void setAudience(String audience)
-
-