org.apache.cxf.rs.security.oauth2.jwt
Class JwtTokenReaderWriter

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.jwt.JwtTokenReaderWriter
All Implemented Interfaces:
JwtHeadersReader, JwtHeadersWriter, JwtTokenReader, JwtTokenWriter

public class JwtTokenReaderWriter
extends Object
implements JwtTokenReader, JwtTokenWriter


Constructor Summary
JwtTokenReaderWriter()
           
 
Method Summary
 String claimsToJson(JwtClaims claims)
           
 JwtToken fromJson(JwtTokenJson pair)
           
 JwtClaims fromJsonClaims(String claimsJson)
           
 JwtHeaders fromJsonHeaders(String headersJson)
           
 String headersToJson(JwtHeaders headers)
           
 void setFormat(boolean format)
           
 JwtTokenJson tokenToJson(JwtToken token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JwtTokenReaderWriter

public JwtTokenReaderWriter()
Method Detail

headersToJson

public String headersToJson(JwtHeaders headers)
Specified by:
headersToJson in interface JwtHeadersWriter

claimsToJson

public String claimsToJson(JwtClaims claims)
Specified by:
claimsToJson in interface JwtTokenWriter

tokenToJson

public JwtTokenJson tokenToJson(JwtToken token)
Specified by:
tokenToJson in interface JwtTokenWriter

fromJsonHeaders

public JwtHeaders fromJsonHeaders(String headersJson)
Specified by:
fromJsonHeaders in interface JwtHeadersReader

fromJsonClaims

public JwtClaims fromJsonClaims(String claimsJson)
Specified by:
fromJsonClaims in interface JwtTokenReader

fromJson

public JwtToken fromJson(JwtTokenJson pair)
Specified by:
fromJson in interface JwtTokenReader

setFormat

public void setFormat(boolean format)


Apache CXF