use of com.sun.identity.security.AdminTokenId in project OpenAM by OpenRock.
the class OAuthServiceUtils method getAdminTokenId.
// This method is only called in server mode
public static String getAdminTokenId() throws OAuthServiceException {
String adminTokenIdString = null;
try {
AdminTokenId adminTokenId = (AdminTokenId) Class.forName("com.sun.identity.security.AdminTokenIdImpl").newInstance();
adminTokenIdString = adminTokenId.getAdminTokenId();
} catch (Exception e) {
throw new OAuthServiceException("Getting Admin token failed", e);
}
return adminTokenIdString;
}
Aggregations