DOFCredentials ClassOpenDOF Object Access Library
This class represents authentication credentials (identity, secret, etc.).
Inheritance Hierarchy

SystemObject
  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

  NameDescription
Public methodStatic membercreate(Byte)
Create DOFCredentials from a buffer that was obtained through marshal(DOFMarshalContext, object, DOFPacket) .
Public methodStatic membercreate(FileStream)
Create a DOFCredentials by reading from an System.IO.Stream .

NOTE: It is the caller's responsibility to try-finally close

stream
passed in.
Public methodStatic membercreate(String)
Create a DOFCredentials by reading from a file specified by filename.
Public methodStatic membercreate(DOFCredentials, DOFObjectIDDomain)
Construct a DOFCredentials with a target domain.
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodgetBytes
Get a byte array of a DOFCredentials that can be used to recreate it at a later time.
Public methodgetDomainID
Gets the security domain that the credential is valid in.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodgetIdentity
Gets the identity of the authorized user.
Public methodgetPrivateStorage
Create a byte array that can be stored and used later.
Public methodgetRemoteDomainID
Get the remote domain identifier of the credentials if there is one.
Public methodgetStorageKey
Gets the Storage Key.
Public methodgetType
Retrieve the type of credentials represented by the given DOFCredentials.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodisResolved
Return true if the credential is resolved, meaning that it is ready to use in authentication.
Public methodmarshal
Public methodsetPrivateStorage
Sets the storage domainID, identity and the credential storage data.
Public methodToString (Overrides ObjectToString.)
Public methodwrite(FileStream)
Write the DOFCredentials to a
java.io.OutputStream
.
Public methodwrite(String)
Write the DOFCredentials to a named file.
Top
Fields

  NameDescription
Public fieldStatic memberKEY
The 256-bit key credentials type.
Public fieldStatic memberNONE
Reserved value representing no credentials.
Public fieldStatic memberPASSWORD
The SRP6 Password credentials type.
Top
Remarks

This class represents authentication credentials (identity, secret, etc.).
See Also

Reference