Provider 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.
This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
[Android.Runtime.Register("java/security/Provider", DoNotGenerateAcw=true)]
public abstract class Provider : Java.Util.Properties
[<Android.Runtime.Register("java/security/Provider", DoNotGenerateAcw=true)>]
type Provider = class
inherit Properties
- Inheritance
- Derived
- Attributes
Remarks
This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security. Services that a provider may implement include:
<ul>
<li>Algorithms (such as DSA, RSA, MD5 or SHA-1).
<li>Key generation, conversion, and management facilities (such as for algorithm-specific keys).
</ul>
Each provider has a name and a version number, and is configured in each runtime it is installed in.
See The Provider Class in the "Java Cryptography Architecture API Specification & Reference" for information about how a particular type of provider, the cryptographic service provider, works and is installed. However, please note that a provider can be used to implement any security service in Java that uses a pluggable architecture with a choice of implementations that fit underneath.
Some provider implementations may encounter unrecoverable internal errors during their operation, for example a failure to communicate with a security token. A ProviderException
should be used to indicate such errors.
The service type Provider
is reserved for use by the security framework. Services of this type cannot be added, removed, or modified by applications. The following attributes are automatically placed in each Provider object: <table cellspacing=4> <caption><b>Attributes Automatically Placed in a Provider Object</b></caption> <tr><th>Name</th><th>Value</th> <tr><td>Provider.id name
</td> <td>String.valueOf(provider.getName())
</td> <tr><td>Provider.id version
</td> <td>String.valueOf(provider.getVersion())
</td> <tr><td>Provider.id info
</td> <td>String.valueOf(provider.getInfo())
</td> <tr><td>Provider.id className
</td> <td>provider.getClass().getName()
</td> </table>
Java documentation for java.security.Provider
.
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
Provider(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Provider(String, Double, String) |
Constructs a provider with the specified name, version number, and information. |
Properties
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. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
Name |
Returns the name of this provider. |
PeerReference | (Inherited from Object) |
Services |
Get an unmodifiable Set of all services supported by this 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. |
Methods
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. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
ForEach(IBiConsumer) |
Added in 1. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetOrDefault(Object, Object) |
Added in 1. |
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. |
JavaFinalize() |
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) |
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. |
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. |
PutIfAbsent(Object, Object) |
If the specified key is not already associated with a value (or is mapped
to |
PutService(Provider+Service) |
Add a service. |
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. |
Replace(Object, Object) |
Replaces the entry for the specified key only if it is currently mapped to some value. |
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. |
Save(Stream, String) |
Obsolete.
Calls the |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
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, 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>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (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
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |