AuthProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Legacy security code; do not use.
[Android.Runtime.Register("java/security/AuthProvider", DoNotGenerateAcw=true)]
public abstract class AuthProvider : Java.Security.Provider
[<Android.Runtime.Register("java/security/AuthProvider", DoNotGenerateAcw=true)>]
type AuthProvider = class
inherit Provider
- Inheritance
- Attributes
Remarks
Legacy security code; do not use.
Java documentation for java.security.AuthProvider.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
| Name | Description |
|---|---|
| AuthProvider(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| AuthProvider(String, Double, String) |
Initializes the legacy provider with an empty name, version zero, and empty information, ignoring the supplied values on Android. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| Defaults |
A property list that contains default values for any keys not found in this property list. (Inherited from Properties) |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| Info |
Returns a human-readable description of the provider and its services. (Inherited from Provider) |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState |
Gets the state flags last assigned by the runtime. (Inherited from JavaObject) |
| JniPeerMembers |
Gets the JNI metadata used to access members of this Java binding. |
| Name |
Returns the name of this provider. (Inherited from Provider) |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| Services |
Get an unmodifiable Set of all services supported by this Provider. (Inherited from Provider) |
| ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
| ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
| Version |
Returns the version number for this provider. (Inherited from Provider) |
Methods
| Name | Description |
|---|---|
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| Compute(Object, IBiFunction) |
Attempts to compute a mapping for the specified key and its
current mapped value (or |
| ComputeIfAbsent(Object, IFunction) |
If the specified key is not already associated with a value (or
is mapped to |
| ComputeIfPresent(Object, IBiFunction) |
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. (Inherited from Provider) |
| Construct(JniObjectReference, JniObjectReferenceOptions) |
Delegates construction of this peer to the runtime's value manager. (Inherited from JavaObject) |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() |
Asks the value manager to dispose this peer unless its mapping retains this same managed instance. (Inherited from JavaObject) |
| Equals(Object) |
Tests whether another managed peer refers to the same Java object. (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| ForEach(IBiConsumer) |
Added in 1. (Inherited from Provider) |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| GetOrDefault(Object, Object) |
Added in 1. (Inherited from Provider) |
| GetProperty(String, String) |
Searches for the property with the specified key in this property list. (Inherited from Properties) |
| GetProperty(String) |
Searches for the property with the specified key in this property list. (Inherited from Properties) |
| GetService(String, String) |
Get the service describing this Provider's implementation of the specified type of this algorithm or alias. (Inherited from Provider) |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| List(PrintStream) |
Prints this property list out to the specified output stream. (Inherited from Properties) |
| List(PrintWriter) |
Prints this property list out to the specified output stream. (Inherited from Properties) |
| Load(Reader) |
Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format. (Inherited from Properties) |
| Load(Stream) |
Reads a property list (key and element pairs) from the input byte stream. (Inherited from Properties) |
| LoadFromXML(Stream) |
Loads all of the properties represented by the XML document on the specified input stream into this properties table. (Inherited from Properties) |
| Login(Subject, ICallbackHandler) |
When implemented in a derived class, authenticates the subject through this legacy provider. |
| Logout() |
When implemented in a derived class, ends the login session for this legacy provider. |
| Merge(Object, Object, IBiFunction) |
If the specified key is not already associated with a value or is associated with null, associates it with the given value. (Inherited from Provider) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| PropertyNames() |
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. (Inherited from Properties) |
| Put(Object, Object) |
Sets the |
| PutAll(IDictionary<Object,Object>) |
Copies all of the mappings from the specified Map to this provider. (Inherited from Provider) |
| PutIfAbsent(Object, Object) |
If the specified key is not already associated with a value (or is mapped
to |
| PutService(Provider+Service) |
Add a service. (Inherited from Provider) |
| RemoveService(Provider+Service) |
Remove a service previously added using
|
| Replace(Object, Object, Object) |
Replaces the entry for the specified key only if currently mapped to the specified value. (Inherited from Provider) |
| Replace(Object, Object) |
Replaces the entry for the specified key only if it is currently mapped to some value. (Inherited from Provider) |
| ReplaceAll(IBiFunction) |
Replaces 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. (Inherited from Provider) |
| Save(Stream, String) |
Obsolete.
Calls the |
| SetCallbackHandler(ICallbackHandler) |
When implemented in a derived class, sets the callback handler for this legacy provider's authentication requests. |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) |
Stores a reference value in the control block without creating a JNI reference copy. (Inherited from JavaObject) |
| SetProperty(String, String) |
Calls the |
| Store(Stream, String) |
Writes this property list (key and element pairs) in this
|
| Store(Writer, String) |
Writes this property list (key and element pairs) in this
|
| StoreToXML(Stream, String, Charset) |
Emits an XML document representing all of the properties contained in this table, using the specified encoding. (Inherited from Properties) |
| StoreToXML(Stream, String, String) |
Emits an XML document representing all of the properties contained in this table, using the specified encoding. (Inherited from Properties) |
| StoreToXML(Stream, String) |
Emits an XML document representing all of the properties contained in this table. (Inherited from Properties) |
| StringPropertyNames() |
Returns a set of keys in 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. (Inherited from Properties) |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() |
Marks this peer as disposed and calls |
| IJavaPeerable.Finalized() |
Marks this peer as disposed and calls |
| IJavaPeerable.JniObjectReferenceControlBlock |
Gets the native control-block pointer used by this peer. (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Stores the identity hash code supplied by the runtime. (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Replaces the stored managed peer state flags. (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Updates the peer reference and releases a disposed peer's control block when the reference is invalid. (Inherited from JavaObject) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) |
Reuses a compatible managed peer or obtains a wrapper of the requested type. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |