Identity.setPublicKey
Class Overview | Class Members |
This Package |
All Packages
public void setPublicKey( PublicKey key ) throws KeyManagementException
Parameters
- key
- the public key for this identity.
Description
Sets this identity's public key. The old key and all of this
identity's certificates are removed by this operation.
Exceptions
KeyManagementException
if another identity in the
identity's scope has the same public key, or if another exception occurs.