No examples for this method. 
     
 
     
      Frequently called with: [Clear]  
     
 
      
    
 
     
     
     -1 
    
 
     
     
   | java.lang.Object | |
| ↳ | java.security.KeyRep | 
KeyRep is a standardized representation for serialized Key objects. 
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | KeyRep.Type | Typeenumerates the supported key types. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Constructs a new instance of 
            KeyRepwith the specified arguments. | ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Resolves and returns the 
            Keyobject. | ||||||||||
| [Expand] 
           Inherited Methods
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class java.lang.Object | |||||||||||
Constructs a new instance of KeyRep with the specified arguments. The arguments should be obtained from the Key object that has to be serialized.
| type | the type of the key. | 
|---|---|
| algorithm | the algorithm (obtained by getAlgorithm()). | 
| format | the format of the key (obtained by getFormat()). | 
| encoded | the encoded byte[](obtained bygetEncoded()). | 
| NullPointerException | if type, algorithm, format or encodedisnull. | 
|---|
Resolves and returns the Key object. Three KeyRep.Type|format combinations are supported: 
Type.PRIVATE | "PKCS#8" : returns a PrivateKey instance, generated from a key factory (suitable for the algorithm) that is initialized with a PKCS8EncodedKeySpec using the encoded key bytes. Type.SECRET | "RAW" : returns a SecretKeySpec instance, created with the encoded key bytes and the algorithm. Type.PUBLIC | "X.509": returns a PublicKey instance, generated from a key factory (suitable for the algorithm) that is initialized with a X509EncodedKeySpec using the encoded key bytes. Key object.| ObjectStreamException | if the Type|format combination is not recognized, or the resolution of any key parameter fails. | 
|---|