Java Code Examples for org.wso2.carbon.utils.CarbonUtils#checkSecurity()
The following examples show how to use
org.wso2.carbon.utils.CarbonUtils#checkSecurity() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationMgtSystemConfig.java From carbon-identity-framework with Apache License 2.0 | 5 votes |
/** * Returns the Singleton of <code>ApplicationMgtSystemConfig</code> * * @return */ public static ApplicationMgtSystemConfig getInstance() { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (ApplicationMgtSystemConfig.class) { if (instance == null) { instance = new ApplicationMgtSystemConfig(); } } } return instance; }
Example 2
Source File: AuthorizationHandlerManager.java From carbon-identity with Apache License 2.0 | 5 votes |
public static AuthorizationHandlerManager getInstance() throws IdentityOAuth2Exception { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (AuthorizationHandlerManager.class) { if (instance == null) { instance = new AuthorizationHandlerManager(); } } } return instance; }
Example 3
Source File: AccessTokenIssuer.java From carbon-identity with Apache License 2.0 | 5 votes |
/** * Singleton method * * @return AccessTokenIssuer */ public static AccessTokenIssuer getInstance() throws IdentityOAuth2Exception { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (AccessTokenIssuer.class) { if (instance == null) { instance = new AccessTokenIssuer(); } } } return instance; }
Example 4
Source File: ClaimCache.java From carbon-identity with Apache License 2.0 | 5 votes |
public static ClaimCache getInstance() { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (ClaimCache.class) { if (instance == null) { instance = new ClaimCache(); } } } return instance; }
Example 5
Source File: OAuthServerConfiguration.java From carbon-identity with Apache License 2.0 | 5 votes |
public static OAuthServerConfiguration getInstance() { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (OAuthServerConfiguration.class) { if (instance == null) { instance = new OAuthServerConfiguration(); } } } return instance; }
Example 6
Source File: ApplicationMgtSystemConfig.java From carbon-identity with Apache License 2.0 | 5 votes |
/** * Returns the Singleton of <code>ApplicationMgtSystemConfig</code> * * @return */ public static ApplicationMgtSystemConfig getInstance() { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (ApplicationMgtSystemConfig.class) { if (instance == null) { instance = new ApplicationMgtSystemConfig(); } } } return instance; }
Example 7
Source File: AuthorizationGrantCache.java From carbon-identity with Apache License 2.0 | 5 votes |
/** * Singleton method * * @return AuthorizationGrantCache */ public static AuthorizationGrantCache getInstance() { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (AuthorizationGrantCache.class) { if (instance == null) { instance = new AuthorizationGrantCache(); } } } return instance; }
Example 8
Source File: SessionDataCache.java From carbon-identity with Apache License 2.0 | 5 votes |
public static SessionDataCache getInstance() { CarbonUtils.checkSecurity(); if (instance == null) { synchronized (SessionDataCache.class) { if (instance == null) { instance = new SessionDataCache(); } } } return instance; }
Example 9
Source File: IdPCacheByAuthProperty.java From carbon-identity with Apache License 2.0 | 4 votes |
public static IdPCacheByAuthProperty getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 10
Source File: ConfigStoreBasedTemplateCache.java From carbon-identity-framework with Apache License 2.0 | 4 votes |
public static ConfigStoreBasedTemplateCache getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 11
Source File: IdPCacheByHRI.java From carbon-identity with Apache License 2.0 | 4 votes |
public static IdPCacheByHRI getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 12
Source File: ServiceReferenceHolder.java From attic-stratos with Apache License 2.0 | 4 votes |
public static ConfigurationContext getClientConfigContext() { CarbonUtils.checkSecurity(); return clientConfigContext; }
Example 13
Source File: ClaimCache.java From carbon-apimgt with Apache License 2.0 | 4 votes |
public static ClaimCache getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 14
Source File: IdPCacheByHRI.java From carbon-identity-framework with Apache License 2.0 | 4 votes |
public static IdPCacheByHRI getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 15
Source File: IdPCacheByName.java From carbon-identity-framework with Apache License 2.0 | 4 votes |
public static IdPCacheByName getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 16
Source File: IdPCacheByResourceId.java From carbon-identity-framework with Apache License 2.0 | 4 votes |
public static IdPCacheByResourceId getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 17
Source File: IdPCacheByAuthProperty.java From carbon-identity-framework with Apache License 2.0 | 4 votes |
public static IdPCacheByAuthProperty getInstance() { CarbonUtils.checkSecurity(); return instance; }
Example 18
Source File: DefaultKeyProviderService.java From carbon-identity-framework with Apache License 2.0 | 4 votes |
@Override public Certificate getCertificate(String tenantDomain) throws IdentityException { CarbonUtils.checkSecurity(); return keyStoreManagerExtension.getCertificate(tenantDomain); }
Example 19
Source File: DefaultKeyProviderService.java From carbon-identity-framework with Apache License 2.0 | 4 votes |
@Override public PrivateKey getPrivateKey(String tenantDomain) throws IdentityException { CarbonUtils.checkSecurity(); return keyStoreManagerExtension.getPrivateKey(tenantDomain); }
Example 20
Source File: IdPCacheByName.java From carbon-identity with Apache License 2.0 | 4 votes |
public static IdPCacheByName getInstance() { CarbonUtils.checkSecurity(); return instance; }