AuthProvider (Java SE 26 & JDK 26)
- All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
-
Nested Class Summary
Nested classes/interfaces declared in class Provider
static classThe description of a security service.
-
Field Summary
Fields declared in class Properties
A property list that contains default values for any keys not found in this property list.
-
Constructor Summary
Constructors
protectedprotectedConstructs a provider with the specified name, version string, and information.
-
Method Summary
Methods declared in class Provider
clear, compute, computeIfAbsent, computeIfPresent, configure, entrySet, forEach, getInfo, getName, getOrDefault, getService, getServices, getVersion, getVersionStr, isConfigured, keySet, load, merge, put, putAll, putIfAbsent, putService, remove, remove, removeService, replace, replace, replaceAll, toString, valuesvoidClears this
Providerso that it no longer contains the properties used to look up facilities implemented by theProvider.Attempts to compute a mapping for the specified key and its current mapped value (or
nullif there is no current mapping).If the specified key is not already associated with a value (or is mapped to
null), attempts to compute its value using the given mapping function and enters it into this map unlessnull.If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.
Apply the supplied configuration argument to this
Providerinstance and return the configuredProvider.Returns an unmodifiable Set view of the property entries contained in this
Provider.voidPerforms the given action for each entry in this map until all entries have been processed or the action throws an exception.
Returns a human-readable description of the
Providerand its services.Returns the name of this
Provider.Returns the value to which the specified key is mapped, or
defaultValueif this map contains no mapping for the key.Get the service describing this Provider's implementation of the specified type of this algorithm or alias.
Get an unmodifiable Set of all services supported by this
Provider.doubleReturns the version string for this
Provider.booleanCheck if this
Providerinstance has been configured.Returns an unmodifiable Set view of the property keys contained in this
Provider.voidReads a property list (key and element pairs) from the input stream.
If the specified key is not already associated with a value or is associated with
null, associates it with the given value.Sets the
keyproperty to have the specifiedvalue.voidCopies all the mappings from the specified Map to this
Provider.If the specified key is not already associated with a value (or is mapped to
null) associates it with the given value and returnsnull, else returns the current value.protected voidRemoves the
keyproperty (and its correspondingvalue).booleanRemoves the entry for the specified key only if it is currently mapped to the specified value.
protected voidReplaces the entry for the specified key only if it is currently mapped to some value.
booleanReplaces the entry for the specified key only if currently mapped to the specified value.
voidReplaces each entry's value with the result of invoking the given function on that entry, in the order entries are returned by an entry set iterator, until all entries have been processed or the function throws an exception.
Returns a string with the name and the version string of this
Provider.Returns an unmodifiable Collection view of the property values contained in this
Provider.Methods declared in class Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNamesSearches for the property with the specified key in this property list.
Searches for the property with the specified key in this property list.
voidPrints this property list out to the specified output stream.
voidPrints this property list out to the specified output stream.
voidReads a property list (key and element pairs) from the input character stream in a simple line-oriented format.
voidLoads all of the properties represented by the XML document on the specified input stream into this properties table.
Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.
voidCalls the
Hashtablemethodput.voidWrites this property list (key and element pairs) in this
Propertiestable to the output stream in a format suitable for loading into aPropertiestable using theload(InputStream)method.voidWrites this property list (key and element pairs) in this
Propertiestable to the output character stream in a format suitable for using theload(Reader)method.voidEmits an XML document representing all of the properties contained in this table.
voidEmits an XML document representing all of the properties contained in this table, using the specified encoding.
voidEmits an XML document representing all of the properties contained in this table, using the specified encoding.
Returns an unmodifiable set of keys from this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.
Methods declared in class Hashtable
clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, rehash, sizeCreates a shallow copy of this hashtable.
booleanTests if some key maps into the specified value in this hashtable.
booleanTests if the specified object is a key in this hashtable.
booleanReturns true if this hashtable maps one or more keys to this value.
Returns an enumeration of the values in this hashtable.
booleanCompares the specified Object with this Map for equality, as per the definition in the Map interface.
Returns the value to which the specified key is mapped, or
nullif this map contains no mapping for the key.intReturns the hash code value for this Map as per the definition in the Map interface.
booleanTests if this hashtable maps no keys to values.
Returns an enumeration of the keys in this hashtable.
protected voidIncreases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently.
intReturns the number of keys in this hashtable.
Methods declared in class Object
finalize, getClass, notify, notifyAll, wait, wait, waitprotected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
AuthProvider
-
AuthProvider
-
-
Method Details
-
login
-
logout
-
setCallbackHandler
-