use of org.forgerock.openam.cts.utils.KeyConversion in project OpenAM by OpenRock.
the class OAuthAdapterTest method generateOAuthAdapter.
/**
* @return Makes a standard OAuthAdapter with real dependencies.
*/
private OAuthAdapter generateOAuthAdapter() {
JSONSerialisation serialisation = new JSONSerialisation(new ObjectMapper());
KeyConversion keyConversion = new KeyConversion();
OAuthValues oAuthValues = new OAuthValues();
TokenBlobUtils blobUtils = new TokenBlobUtils();
return new OAuthAdapter(new TokenIdFactory(keyConversion), serialisation, oAuthValues, blobUtils);
}
use of org.forgerock.openam.cts.utils.KeyConversion in project OpenAM by OpenRock.
the class SAMLAdapterTest method setup.
@BeforeMethod
public void setup() {
serialisation = mock(JSONSerialisation.class);
tokenIdFactory = mock(TokenIdFactory.class);
blobUtils = mock(TokenBlobUtils.class);
encoding = new KeyConversion();
adapter = new SAMLAdapter(tokenIdFactory, serialisation, blobUtils);
}
Aggregations