This class was deprecated
      in API level 1.
    Use the java.security.cert package
 and Principal instead.
  
Class Overview
Signer represents an identity (individual or corporation) that owns a
 private key and the corresponding public key.
 
Summary
| Public Constructors | 
|---|
	 
    
        |  | Signer(String name) Constructs a new instance of Signerwith the given name. | 
	 
    
        |  | Signer(String name, IdentityScope scope) Constructs a new instance of Signerwith the given name in the
 given scope. | 
| Protected Constructors | 
|---|
	 
    
        |  | Signer() Constructs a new instance of Signer. | 
| Public Methods | 
|---|
	 
    
        | PrivateKey | getPrivateKey() Returns the private key of this Signer. | 
	 
    
        | final
            
            
            void | setKeyPair(KeyPair pair) Associates the specified key pair with this Signer. | 
	 
    
        | String | toString() Returns a string containing a concise, human-readable description of this
 Signerincluding its name and its scope if present. | 
| [Expand] Inherited Methods | 
|---|
|  From class
  java.security.Identity 
  
   
    
    
	 
    
        | void | addCertificate(Certificate certificate) Adds a Certificateto thisIdentity. |  
        | Certificate[] | certificates() Returns the certificates for this Identity. |  
        | final
            
            
            boolean | equals(Object obj) Compares the specified object with this Identityfor equality and
 returnstrueif the specified object is equal,falseotherwise. |  
        | String | getInfo() Returns the information string of this Identity. |  
        | final
            
            
            String | getName() Returns the name of this Identity. |  
        | PublicKey | getPublicKey() Returns the PublicKeyassociated with thisIdentity. |  
        | final
            
            
            IdentityScope | getScope() Returns the IdentityScopeof thisIdentity. |  
        | int | hashCode() Returns the hash code value for this Identity. |  
        | boolean | identityEquals(Identity identity) Compares the specified Identitywith thisIdentityfor
 equality and returnstrueif the specified object is equal,falseotherwise. |  
        | void | removeCertificate(Certificate certificate) Removes the specified Certificatefrom thisIdentity. |  
        | void | setInfo(String info) Sets an information string for this Identity. |  
        | void | setPublicKey(PublicKey key) Sets the specified PublicKeyto thisIdentity. |  
        | String | toString(boolean detailed) Returns a string containing a concise, human-readable description of the
 this Identity. |  
        | String | toString() Returns a string containing a concise, human-readable description of the
 this Identityincluding its name and its scope. |  | 
|  From class
  java.lang.Object 
  
   
    
    
	 
    
        | Object | clone() Creates and returns a copy of this Object. |  
        | boolean | equals(Object o) Compares this instance with the specified object and indicates if they
 are equal. |  
        | void | finalize() Invoked when the garbage collector has detected that this instance is no longer reachable. |  
        | final
            
            
            Class<?> | getClass() Returns the unique instance of  Class that represents this
 object's class. |  
        | int | hashCode() Returns an integer hash code for this object. |  
        | final
            
            
            void | notify() Causes a thread which is waiting on this object's monitor (by means of
 calling one of the wait()methods) to be woken up. |  
        | final
            
            
            void | notifyAll() Causes all threads which are waiting on this object's monitor (by means
 of calling one of the wait()methods) to be woken up. |  
        | String | toString() Returns a string containing a concise, human-readable description of this
 object. |  
        | final
            
            
            void | wait() Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object. |  
        | final
            
            
            void | wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  
        | final
            
            
            void | wait(long millis) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  | 
|  From interface
  java.security.Principal 
  
   
    
    
	 
    
        | abstract
            
            
            
            
            boolean | equals(Object obj) Compares the specified object with this Principalfor equality
 and returnstrueif the specified object is equal,falseotherwise. |  
        | abstract
            
            
            
            
            String | getName() Returns the name of this Principal. |  
        | abstract
            
            
            
            
            int | hashCode() Returns the hash code value for this Principal. |  
        | abstract
            
            
            
            
            String | toString() Returns a string containing a concise, human-readable description of
 this Principal. |  | 
 
Public Constructors
 
    
      
        public 
         
         
         
         
        
      
      Signer
      (String name)
    
      
    
      
  Constructs a new instance of Signer with the given name.
      Parameters
      
        
          | name | the name of the signer. | 
      
   
     
 
 
    
      
    
      
  Constructs a new instance of Signer with the given name in the
 given scope.
      Parameters
      
        
          | name | the name of the signer. | 
        
          | scope | the scope of the signer. | 
      
   
  
     
 
Protected Constructors
 
    
      
        protected 
         
         
         
         
        
      
      Signer
      ()
    
      
    
      
  Constructs a new instance of Signer.
 
 
Public Methods
 
    
      
        public 
         
         
         
         
        PrivateKey
      
      getPrivateKey
      ()
    
      
    
      
  Returns the private key of this Signer.
 
 
 
    
      
        public 
         
        final 
         
         
        void
      
      setKeyPair
      (KeyPair pair)
    
      
    
      
  Associates the specified key pair with this Signer.
      Parameters
      
        
          | pair | the key pair to associate with this Signer. | 
      
   
  
     
 
 
    
      
        public 
         
         
         
         
        String
      
      toString
      ()
    
      
    
      
  Returns a string containing a concise, human-readable description of this
 Signer including its name and its scope if present.
      Returns
      - a printable representation for this Signer.