/forgerock/openam-v13/openam-sts/openam-client-sts/src/test/java/org/forgerock/openam/sts/config/user/ |
H A D | CustomTokenOperationTest.java | 25 private static final String CUSTOM_TOKEN_NAME = "BOBO_TOKEN"; field in class:CustomTokenOperationTest 27 private static final String SMS_STRING = CUSTOM_TOKEN_NAME + "|" + CUSTOM_TOKEN_OPERATION_IMPL; 32 CustomTokenOperation customTokenOperation = new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL); 33 CustomTokenOperation customTokenOperation2 = new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL); 35 assertNotEquals(customTokenOperation, new CustomTokenOperation(CUSTOM_TOKEN_NAME, "foo")); 40 CustomTokenOperation customTokenOperation = new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL); 46 assertEquals(new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL), CustomTokenOperation.fromSMSString(SMS_STRING));
|
/forgerock/openam/openam-sts/openam-client-sts/src/test/java/org/forgerock/openam/sts/config/user/ |
H A D | CustomTokenOperationTest.java | 25 private static final String CUSTOM_TOKEN_NAME = "BOBO_TOKEN"; field in class:CustomTokenOperationTest 27 private static final String SMS_STRING = CUSTOM_TOKEN_NAME + "|" + CUSTOM_TOKEN_OPERATION_IMPL; 32 CustomTokenOperation customTokenOperation = new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL); 33 CustomTokenOperation customTokenOperation2 = new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL); 35 assertNotEquals(customTokenOperation, new CustomTokenOperation(CUSTOM_TOKEN_NAME, "foo")); 40 CustomTokenOperation customTokenOperation = new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL); 46 assertEquals(new CustomTokenOperation(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_OPERATION_IMPL), CustomTokenOperation.fromSMSString(SMS_STRING));
|
/forgerock/openam-v13/openam-sts/openam-client-sts/src/test/java/org/forgerock/openam/sts/rest/config/user/ |
H A D | TokenTransformConfigTest.java | 31 private static final String CUSTOM_TOKEN_NAME = "BOBO"; field in class:TokenTransformConfigTest 90 return CUSTOM_TOKEN_NAME; 94 assertEquals(CUSTOM_TOKEN_NAME, ttc1.getInputTokenType().getId()); 95 assertEquals(CUSTOM_TOKEN_NAME, ttc1.getOutputTokenType().getId());
|
H A D | RestSTSInstanceConfigTest.java | 49 private static final String CUSTOM_TOKEN_NAME = "BOBO"; field in class:RestSTSInstanceConfigTest 307 restSTSInstanceConfigBuilder.addCustomTokenValidator(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_VALIDATOR); 308 restSTSInstanceConfigBuilder.addCustomTokenTransform(CUSTOM_TOKEN_NAME, "SAML2", true); 311 restSTSInstanceConfigBuilder.addCustomTokenProvider(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_PROVIDER); 312 restSTSInstanceConfigBuilder.addCustomTokenTransform("OPENAM", CUSTOM_TOKEN_NAME, true);
|
/forgerock/openam/openam-sts/openam-client-sts/src/test/java/org/forgerock/openam/sts/rest/config/user/ |
H A D | TokenTransformConfigTest.java | 31 private static final String CUSTOM_TOKEN_NAME = "BOBO"; field in class:TokenTransformConfigTest 90 return CUSTOM_TOKEN_NAME; 94 assertEquals(CUSTOM_TOKEN_NAME, ttc1.getInputTokenType().getId()); 95 assertEquals(CUSTOM_TOKEN_NAME, ttc1.getOutputTokenType().getId());
|
H A D | RestSTSInstanceConfigTest.java | 49 private static final String CUSTOM_TOKEN_NAME = "BOBO"; field in class:RestSTSInstanceConfigTest 307 restSTSInstanceConfigBuilder.addCustomTokenValidator(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_VALIDATOR); 308 restSTSInstanceConfigBuilder.addCustomTokenTransform(CUSTOM_TOKEN_NAME, "SAML2", true); 311 restSTSInstanceConfigBuilder.addCustomTokenProvider(CUSTOM_TOKEN_NAME, CUSTOM_TOKEN_PROVIDER); 312 restSTSInstanceConfigBuilder.addCustomTokenTransform("OPENAM", CUSTOM_TOKEN_NAME, true);
|
/forgerock/openam-v13/openam-sts/openam-client-sts/src/main/java/org/forgerock/openam/sts/config/user/ |
H A D | CustomTokenOperation.java | 36 private static final String CUSTOM_TOKEN_NAME = "customTokenName"; field in class:CustomTokenOperation 47 Reject.ifNull(customTokenName, CUSTOM_TOKEN_NAME + " cannot be null"); 80 .append(CUSTOM_TOKEN_NAME).append(COLON).append(customTokenName).append(SEMI_COLON) 90 return json(object(field(CUSTOM_TOKEN_NAME, customTokenName), field(CUSTOM_OPERATION_CLASS_NAME, customOperationClassName))); 99 return new CustomTokenOperation(json.get(CUSTOM_TOKEN_NAME).asString(), json.get(CUSTOM_OPERATION_CLASS_NAME).asString());
|
/forgerock/openam-v13/openam-sts/openam-rest-sts/src/test/java/org/forgerock/openam/sts/rest/operation/ |
H A D | TokenRequestMarshallerImplTest.java | 64 private static final String CUSTOM_TOKEN_NAME = "BOBO"; field in class:TokenRequestMarshallerImplTest 96 return Sets.newHashSet(new CustomTokenOperation(CUSTOM_TOKEN_NAME, "org.forgerock.bobo.BoboTokenValidator")); 102 return Sets.newHashSet(new CustomTokenOperation(CUSTOM_TOKEN_NAME, "org.forgerock.bobo.BoboTokenProvider")); 181 JsonValue jsonCustomOutput = json(object(field("token_type", CUSTOM_TOKEN_NAME), 186 return CUSTOM_TOKEN_NAME; 192 assertEquals(((JsonValue)params.getTokenCreationState()).get("token_type").asString(), CUSTOM_TOKEN_NAME);
|
/forgerock/openam/openam-sts/openam-client-sts/src/main/java/org/forgerock/openam/sts/config/user/ |
H A D | CustomTokenOperation.java | 36 private static final String CUSTOM_TOKEN_NAME = "customTokenName"; field in class:CustomTokenOperation 47 Reject.ifNull(customTokenName, CUSTOM_TOKEN_NAME + " cannot be null"); 80 .append(CUSTOM_TOKEN_NAME).append(COLON).append(customTokenName).append(SEMI_COLON) 90 return json(object(field(CUSTOM_TOKEN_NAME, customTokenName), field(CUSTOM_OPERATION_CLASS_NAME, customOperationClassName))); 99 return new CustomTokenOperation(json.get(CUSTOM_TOKEN_NAME).asString(), json.get(CUSTOM_OPERATION_CLASS_NAME).asString());
|
/forgerock/openam/openam-sts/openam-rest-sts/src/test/java/org/forgerock/openam/sts/rest/operation/ |
H A D | TokenRequestMarshallerImplTest.java | 64 private static final String CUSTOM_TOKEN_NAME = "BOBO"; field in class:TokenRequestMarshallerImplTest 96 return Sets.newHashSet(new CustomTokenOperation(CUSTOM_TOKEN_NAME, "org.forgerock.bobo.BoboTokenValidator")); 102 return Sets.newHashSet(new CustomTokenOperation(CUSTOM_TOKEN_NAME, "org.forgerock.bobo.BoboTokenProvider")); 181 JsonValue jsonCustomOutput = json(object(field("token_type", CUSTOM_TOKEN_NAME), 186 return CUSTOM_TOKEN_NAME; 192 assertEquals(((JsonValue)params.getTokenCreationState()).get("token_type").asString(), CUSTOM_TOKEN_NAME);
|