Package org.tsugi.lti13
Class LTI13AccessTokenUtil
- java.lang.Object
-
- org.tsugi.lti13.LTI13AccessTokenUtil
-
public class LTI13AccessTokenUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description LTI13AccessTokenUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MapgetClientAssertion(String[] scopes, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)Return a Map of values ready for posting grant_type=client_credentials client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer client_assertion=eyJ0eXAiOiJKV1QiLCJhbG....qEZtDgBgMMsneNePfMrifOvvFLkxnpefA scope=http://imsglobal.org/ags/lineitem http://imsglobal.org/ags/result/read https://www.imsglobal.org/spec/security/v1p0/#using-json-web-tokens-with-oauth-2-0-client-credentials-grantstatic MapgetLineItemsAssertion(KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)static AccessTokengetLineItemsToken(String url, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)static MapgetNRPSAssertion(KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)static AccessTokengetNRPSToken(String url, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)static MapgetScoreAssertion(KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)static AccessTokengetScoreToken(String url, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)protected static AccessTokenretrieveToken(String url, Map assertion, StringBuffer dbs)
-
-
-
Method Detail
-
getClientAssertion
public static Map getClientAssertion(String[] scopes, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)
Return a Map of values ready for posting grant_type=client_credentials client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer client_assertion=eyJ0eXAiOiJKV1QiLCJhbG....qEZtDgBgMMsneNePfMrifOvvFLkxnpefA scope=http://imsglobal.org/ags/lineitem http://imsglobal.org/ags/result/read https://www.imsglobal.org/spec/security/v1p0/#using-json-web-tokens-with-oauth-2-0-client-credentials-grant
-
getScoreToken
public static AccessToken getScoreToken(String url, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)
-
getScoreAssertion
public static Map getScoreAssertion(KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)
-
getNRPSToken
public static AccessToken getNRPSToken(String url, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)
-
getNRPSAssertion
public static Map getNRPSAssertion(KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)
-
getLineItemsToken
public static AccessToken getLineItemsToken(String url, KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)
-
getLineItemsAssertion
public static Map getLineItemsAssertion(KeyPair keyPair, String clientId, String deploymentId, String tokenAudience, StringBuffer dbs)
-
retrieveToken
protected static AccessToken retrieveToken(String url, Map assertion, StringBuffer dbs)
-
-