Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.security.services
Interface AppContext


public interface AppContext

AppContext is an interface that allows an application developer to publish values from within the application to the security runtime. The runtime may use these values to assist it in providing security decisions or information.


Method Summary
abstract  AppContextElement getElement(String name)
          Gets an element for the specified AppContextElement name.
abstract  AppContextElement[] getElements(String[] names)
          Gets an array of AppContextElement objects containing values for each of the named elements that are known.
abstract  String[] getNames()
          Gets a list of AppContextElement names that may be requested.
abstract  int size()
          Provides the count of the number of AppContextElements that the AppContext is able to return.

 

Method Detail

size

int size()
Provides the count of the number of AppContextElements that the AppContext is able to return.
Returns:
the number of AppContextElements that can be requested. A value of -1 indicates that the handler is unable to return the exact count.

getNames

String[] getNames()
Gets a list of AppContextElement names that may be requested.
Returns:
the names of the AppContextElements that may be requested, represented as an array of Strings.

getElement

AppContextElement getElement(String name)
Gets an element for the specified AppContextElement name.
Parameters:
name - the name of the AppContextElement for which a value should be returned, represented as a String.
Returns:
an Object that contains the value of the requested name. If the value of the name parameter is unknown, a null value is returned.

getElements

AppContextElement[] getElements(String[] names)
Gets an array of AppContextElement objects containing values for each of the named elements that are known.
Parameters:
names - the names of the AppContextElements to be returned, represented as an array of Strings.
Returns:
an array containing an AppContextElement object for each of the named elements found in the names parameter. The value for the requested element is returned as a java.lang.Object. If a name in the names parameter is unknown, the name will not appear in the array of AppContextElement objects.

Skip navigation links

Copyright 1996, 2015, 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
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09