public static Hashtable<String, Object> getCustomCredentials(Subject callSubject, String cacheKey) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "getCustomCredentials", cacheKey);
        }
        if (callSubject == null || cacheKey == null) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
                Tr.exit(tc, "getCustomCredentials", " null");
            }
            return null;
        }
        GetCustomCredentials action = new GetCustomCredentials(callSubject, cacheKey);
        Hashtable<String, Object> cred = (Hashtable<String, Object>) AccessController.doPrivileged(action);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "getCustomCredentials", objectId(cred));
        }
        return cred;
    }
public static Hashtable < String , Object > getCustomCredentials ( Subject callSubject , String cacheKey ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getCustomCredentials" , cacheKey ) ; } if ( callSubject == null || cacheKey == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getCustomCredentials" , " null" ) ; } return null ; } GetCustomCredentials action = new GetCustomCredentials ( callSubject , cacheKey ) ; Hashtable < String , Object > cred = ( Hashtable < String , Object > ) AccessController . doPrivileged ( action ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getCustomCredentials" , objectId ( cred ) ) ; } return cred ; }
This method extracts the custom hashtable from the provided Subject using the
cacheKey.

@param callSubject The Subject which is checked for the custom hashtable
@param cacheKey The cache key for the entries in the custom hashtable
@return The custom hashtable containing the security information.