| java.lang.Object | |||
| ↳ | java.security.Identity | ||
| ↳ | java.security.IdentityScope | ||
| ↳ | sun.security.provider.IdentityDatabase | ||
An implementation of IdentityScope as a persistent identity database.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new, empty database with a specified source file.
| |||||||||||
Construct a new, empty database.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds an identity to the database.
| |||||||||||
Initialize an IdentityDatabase from file.
| |||||||||||
Initialize an identity database from a stream.
| |||||||||||
Returns the identity in this scope with the specified name (if any).
| |||||||||||
Get an identity by key.
| |||||||||||
Returns an enumeration of all identities in this identity scope.
| |||||||||||
Removes an identity to the database.
| |||||||||||
Saves the database to the default source file.
| |||||||||||
Save the database in its current state to an output stream.
| |||||||||||
Returns the number of identities within this identity scope.
| |||||||||||
Returns a string representation of this identity scope, including
its name, its scope name, and the number of identities in this
identity scope.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.security.IdentityScope
| |||||||||||
From class
java.security.Identity
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.security.Principal
| |||||||||||
Construct a new, empty database with a specified source file.
| file | the source file. |
|---|
| InvalidParameterException |
|---|
Construct a new, empty database.
| InvalidParameterException |
|---|
Adds an identity to the database.
| identity | the identity to be added. |
|---|
| KeyManagementException | if a name or key clash occurs, or if another exception occurs. |
|---|
Initialize an IdentityDatabase from file.
| f | the filename where the identity database is stored. |
|---|
| IOException | a file-related exception occurs (e.g. the directory of the file passed does not exists, etc. |
|---|
Initialize an identity database from a stream. The stream should contain data to initialized a serialized IdentityDatabase object.
| is | the input stream from which to restore the database. |
|---|
| IOException | if a stream IO exception occurs |
|---|
Returns the identity in this scope with the specified name (if any).
| name | the name of the identity to be retrieved. |
|---|
Get an identity by key.
| key | the public key for the identity to be returned. |
|---|
Returns an enumeration of all identities in this identity scope.
Removes an identity to the database.
| identity | the identity to be removed. |
|---|
| KeyManagementException |
|---|
Saves the database to the default source file.
| KeyManagementException | when there is no default source file specified for this database. |
|---|---|
| IOException |
Save the database in its current state to an output stream.
| os | the output stream to which the database should be serialized. |
|---|
| IOException | if an IO exception is raised by stream operations. |
|---|
Returns the number of identities within this identity scope.
Returns a string representation of this identity scope, including its name, its scope name, and the number of identities in this identity scope.