public static void closeAllConnections(Connection dbConnection, ResultSet rs, PreparedStatement prepStmt) { closeResultSet(rs); closeStatement(prepStmt); closeConnection(dbConnection); }
/** * @param realmService */ protected void setRealmService(RealmService realmService) { IdentityTenantUtil.setRealmService(realmService); }
public static void populateProperties() { configuration = IdentityConfigParser.getInstance().getConfiguration(); eventListenerConfiguration = IdentityConfigParser.getInstance().getEventListenerConfiguration(); identityCacheConfigurationHolder = IdentityConfigParser.getInstance().getIdentityCacheConfigurationHolder(); identityCookiesConfigurationHolder = IdentityConfigParser.getIdentityCookieConfigurationHolder(); }
/** * Check the case sensitivity of the user store in which the user is in. * * @param username user name with user store domain * @param tenantId tenant id of the user * @return */ public static boolean isUserStoreInUsernameCaseSensitive(String username, int tenantId) { return isUserStoreCaseSensitive(IdentityUtil.extractDomainFromName(username), tenantId); }
/** * Get a database connection instance from the Identity Persistence Manager * @return Database Connection */ public static Connection getDBConnection(){ return IdentityDatabaseUtil.getDBConnection(); }
public static String getSCIMGroupURL() { String scimURL = IdentityUtil.getServerURL(SCIMCommonConstants.SCIM2_ENDPOINT, true, true); String scimGroupLocation = scimURL + SCIMCommonConstants.GROUPS; return scimGroupLocation; }
/** * Utility method to close a database connection * * @param dbConnection Database <code>Connection</code> object */ public static void closeConnection(Connection dbConnection) { IdentityDatabaseUtil.closeConnection(dbConnection); }
/** * @param rs */ public static void closeResultSet(ResultSet rs) { IdentityDatabaseUtil.closeResultSet(rs); }
/** * To check whether user claims in token is loggable. * * @return true if the user claims in token is loggable, otherwise false. */ private static boolean isUserClaimsInTokenLoggable() { return IdentityUtil.isTokenLoggable(IdentityConstants.IdentityTokens.USER_CLAIMS); }
/** * Utility method to rollback a database connection * * @param dbConnection Database <code>Connection</code> object */ public static void rollBack(Connection dbConnection) { IdentityDatabaseUtil.rollBack(dbConnection); }
public static IdentityConfigParser getInstance() { if (parser == null) { synchronized (lock) { if (parser == null) { parser = new IdentityConfigParser(); } } } return parser; }
/** * Creates and maintains a singleton instance of OpenIDClaimMapper * * @return An instance of OpenIDClaimMapper * @throws Exception */ public static OpenIDClaimMapper getInstance() throws Exception { if (instance == null) { instance = new OpenIDClaimMapper(); } return instance; }
/** * @param ppid * @return * @throws Exception */ public String extractPrimaryUserName(String ppid) throws Exception { return IdentityUtil.getPPIDDisplayValue(ppid); }
public static DynamicX509TrustManager getInstance() throws Exception { if (instance == null) { instance = new DynamicX509TrustManager(); } return instance; }
public static void closeAllConnections(Connection dbConnection, ResultSet rs, PreparedStatement prepStmt) { closeResultSet(rs); closeStatement(prepStmt); closeConnection(dbConnection); }
/** * Check the case sensitivity of the user store in which the user is in. * * @param username user name with user store domain * @param tenantId tenant id of the user * @return */ public static boolean isUserStoreInUsernameCaseSensitive(String username, int tenantId) { return isUserStoreCaseSensitive(IdentityUtil.extractDomainFromName(username), tenantId); }
public static void populateProperties() { configuration = IdentityConfigParser.getInstance().getConfiguration(); eventListenerConfiguration = IdentityConfigParser.getInstance().getEventListenerConfiguration(); identityCacheConfigurationHolder = IdentityConfigParser.getInstance().getIdentityCacheConfigurationHolder(); identityCookiesConfigurationHolder = IdentityConfigParser.getIdentityCookieConfigurationHolder(); }
/** * @param realmService */ protected void unsetRealmService(RealmService realmService) { IdentityTenantUtil.setRealmService(null); }
public static IdentityConfigParser getInstance() { if (parser == null) { synchronized (lock) { if (parser == null) { parser = new IdentityConfigParser(); } } } return parser; }
/** * Creates and maintains a singleton instance of OpenIDClaimMapper * * @return An instance of OpenIDClaimMapper * @throws Exception */ public static OpenIDClaimMapper getInstance() throws Exception { if (instance == null) { instance = new OpenIDClaimMapper(); } return instance; }