Generates a instance of {@code PrivateKey} from the given key specification.paramkeySpec the specification of the private key.returnthe private key.throwsInvalidKeySpecException if the specified {@code keySpec} is invalid.sinceAndroid 1.0
Generates a instance of {@code PublicKey} from the given key specification.paramkeySpec the specification of the public key.returnthe public key.throwsInvalidKeySpecException if the specified {@code keySpec} is invalid.sinceAndroid 1.0
Returns the key specification for the specified key.paramkey the key from which the specification is requested.paramkeySpec the type of the requested {@code KeySpec}.returnthe key specification for the specified key.throwsInvalidKeySpecException if the key can not be processed, or the requested requested {@code KeySpec} is inappropriate for the given key.sinceAndroid 1.0
Translates the given key into a key from this key factory.paramkey the key to translate.returnthe translated key.throwsInvalidKeyException if the specified key can not be translated by this key factory.sinceAndroid 1.0