Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
11g Release 1 (10.3.6)

Part Number E13945-06

weblogic.management.security.credentials
Interface CredentialCacheMBean


public interface CredentialCacheMBean

Defines methods used to get/set the configuration attributes that are required to support the credential cache.

Deprecation of MBeanHome and Type-Safe Interfaces

In addition to being used as a base class that provides functionality to security provider MBeans, JMX applications can use this class directly as a type-safe interface. When used as a type-safe interface, a JMX application imports this class and accesses it through weblogic.management.MBeanHome. As of 9.0, the MBeanHome interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, JMX applications that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the javax.management.MBeanServerConnection interface to discover MBeans, attributes, and attribute types at runtime.


Method Summary
 int getCredentialCacheTTL()
          Returns the maximum number of seconds a credential entry is valid in the LRU cache.
 int getCredentialsCacheSize()
          Returns the maximum size of the LRU cache for holding credentials if caching is enabled.
 boolean isCredentialCachingEnabled()
          Returns whether non-null credentials are cached by the credential mappers
 void setCredentialCacheTTL(int TTL)
          Sets the maximum number of seconds a credential entry is valid in the LRU cache.
 void setCredentialCachingEnabled(boolean enabled)
          Sets whether credentials, if found, should be cached by the mappers
 void setCredentialsCacheSize(int max)
          Sets the maximum size of the LRU cache for holding credentails if caching is enabled.
 

Method Detail

isCredentialCachingEnabled

boolean isCredentialCachingEnabled()
Returns whether non-null credentials are cached by the credential mappers

Default Value:
false

setCredentialCachingEnabled

void setCredentialCachingEnabled(boolean enabled)
                                 throws InvalidAttributeValueException
Sets whether credentials, if found, should be cached by the mappers

Parameters:
enabled - - enable or disable credential caching
Throws:
InvalidAttributeValueException
See Also:
#getEnableCredentialCaching()

getCredentialsCacheSize

int getCredentialsCacheSize()
Returns the maximum size of the LRU cache for holding credentials if caching is enabled.

Default Value:
100

setCredentialsCacheSize

void setCredentialsCacheSize(int max)
                             throws InvalidAttributeValueException
Sets the maximum size of the LRU cache for holding credentails if caching is enabled.

Parameters:
max - - the new maximum number of credentials in the cache
Throws:
InvalidAttributeValueException
See Also:
#getMaxCredentialsInCache()

getCredentialCacheTTL

int getCredentialCacheTTL()
Returns the maximum number of seconds a credential entry is valid in the LRU cache.

Default Value:
600

setCredentialCacheTTL

void setCredentialCacheTTL(int TTL)
                           throws InvalidAttributeValueException
Sets the maximum number of seconds a credential entry is valid in the LRU cache.

Parameters:
TTL - - sets the time (in seconds) for a credential entry to valid in the cache
Throws:
InvalidAttributeValueException
See Also:
#getCredentailCacheTTL()

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server MBean Javadoc
11g Release 1 (10.3.6)

Part Number E13945-06