This class represents authentication credentials (identity, secret, etc.).
Inheritance Hierarchy
org.opendof.core.oalDOFCredentials
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
[SerializableAttribute] public sealed class DOFCredentials : DOFAuthenticatorCredentialStorage
The DOFCredentials type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| create(Byte) |
Create DOFCredentials from a buffer that was obtained through
marshal(DOFMarshalContext, object, DOFPacket)
.
| |
| create(FileStream) |
Create a DOFCredentials by reading from an
System.IO.Stream
.
NOTE: It is the caller's responsibility to try-finally close stream | |
| create(String) | Create a DOFCredentials by reading from a file specified by filename. | |
| create(DOFCredentials, DOFObjectIDDomain) | Construct a DOFCredentials with a target domain. | |
| Equals | (Overrides ObjectEquals(Object).) | |
| getBytes | Get a byte array of a DOFCredentials that can be used to recreate it at a later time.
| |
| getDomainID | Gets the security domain that the credential is valid in. | |
| GetHashCode | (Overrides ObjectGetHashCode.) | |
| getIdentity | Gets the identity of the authorized user. | |
| getPrivateStorage | Create a byte array that can be stored and used later. | |
| getRemoteDomainID | Get the remote domain identifier of the credentials if there is one. | |
| getStorageKey | Gets the Storage Key. | |
| getType | Retrieve the type of credentials represented by the given DOFCredentials.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| isResolved | Return true if the credential is resolved, meaning that it is ready to use in authentication.
| |
| marshal | ||
| setPrivateStorage | Sets the storage domainID, identity and the credential storage data. | |
| ToString | (Overrides ObjectToString.) | |
| write(FileStream) | Write the DOFCredentials to a java.io.OutputStream | |
| write(String) | Write the DOFCredentials to a named file. |
Fields
| Name | Description | |
|---|---|---|
| KEY | The 256-bit key credentials type. | |
| NONE | Reserved value representing no credentials. | |
| PASSWORD | The SRP6 Password credentials type. |
Remarks
See Also