Create a DOFCredentials by reading from a file specified by filename.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public static DOFCredentials create( string filename )
Parameters
- filename
- Type: SystemString
The filename from which to read the DOFCredentials. This must not be null.
Return Value
Type: DOFCredentialsThe DOFCredentials read from the given file. Never returns null.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | If filename is null. |
| DOFException | The file is empty or too large. |
| FileNotFoundException | The file could not be found. |
| IOException | The file could not be read. |
| SecurityException | If a security manager exists and its checkWrite method denies write access to the file. |
| DOFException |
Remarks
See Also