org.pfsw.security.oauth.pkce
Class ProofKeyForCodeExchange

java.lang.Object
  extended by org.pfsw.security.oauth.pkce.ProofKeyForCodeExchange

public class ProofKeyForCodeExchange
extends java.lang.Object

Holder of a code verifier and code challenge as specified by RFC-7637 (PKCE).
See https://tools.ietf.org/html/rfc763


Constructor Summary
ProofKeyForCodeExchange(java.lang.String codeVerifier, java.lang.String codeChallenge, CodeChallengeMethod codeChallengeMethod)
           
 
Method Summary
 java.lang.String getCodeChallenge()
          Returns the plain text or hashed code challenge string.
 CodeChallengeMethod getCodeChallengeMethod()
          Returns the method that was used to derive the code challenge from the code verifier.
 java.lang.String getCodeVerifier()
          Returns the plain text code verifier string.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProofKeyForCodeExchange

public ProofKeyForCodeExchange(java.lang.String codeVerifier,
                               java.lang.String codeChallenge,
                               CodeChallengeMethod codeChallengeMethod)
Method Detail

getCodeVerifier

public java.lang.String getCodeVerifier()
Returns the plain text code verifier string.


getCodeChallenge

public java.lang.String getCodeChallenge()
Returns the plain text or hashed code challenge string.


getCodeChallengeMethod

public CodeChallengeMethod getCodeChallengeMethod()
Returns the method that was used to derive the code challenge from the code verifier.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object