| sun.security.x509.GeneralNameInterface | 
    
|  Known Indirect Subclasses 
      
      
  
        
              | DNSName | This class implements the DNSName as required by the GeneralNames
 ASN.1 object. |  
              | EDIPartyName | This class defines the EDIPartyName of the GeneralName choice. |  
              | IPAddressName | This class implements the IPAddressName as required by the GeneralNames
 ASN.1 object. |  
              | OIDName | This class implements the OIDName as required by the GeneralNames
 ASN.1 object. |  
              | OtherName | This class represents the OtherName as required by the GeneralNames
 ASN.1 object. |  
              | RFC822Name | This class implements the RFC822Name as required by the GeneralNames
 ASN.1 object. |  
              | URIName | This class implements the URIName as required by the GeneralNames
 ASN.1 object. |  
              | X400Address | This class defines the X400Address of the GeneralName choice. |  
              | X500Name | Note:  As of 1.4, the public class,
 javax.security.auth.x500.X500Principal,
 should be used when parsing, generating, and comparing X.500 DNs. |  | 
Class Overview
This interface specifies the abstract methods which have to be
 implemented by all the members of the GeneralNames ASN.1 object.
 
Summary
| Public Methods | 
|---|
	 
    
        | abstract
            
            
            
            
            int | constrains(GeneralNameInterface inputName) Return type of constraint inputName places on this name: 
   NAME_DIFF_TYPE = -1: input name is different type from name (i.e. | 
	 
    
        | abstract
            
            
            
            
            void | encode(DerOutputStream out) Encode the name to the specified DerOutputStream. | 
	 
    
        | abstract
            
            
            
            
            int | getType() Return the type of the general name, as
 defined above. | 
	 
    
        | abstract
            
            
            
            
            int | subtreeDepth() Return subtree depth of this name for purposes of determining
 NameConstraints minimum and maximum bounds and for calculating
 path lengths in name subtrees. | 
 
Constants
 
    
      
        public 
        static 
        final 
        int
      
        NAME_ANY
    
      
        
        
  
      
    
      
  The list of names supported.
        Constant Value: 
        
            
                0
                (0x00000000)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_DIFF_TYPE
    
      
        
        
  
      
    
      
  The list of constraint results.
        Constant Value: 
        
            
                -1
                (0xffffffff)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_DIRECTORY
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                4
                (0x00000004)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_DNS
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                2
                (0x00000002)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_EDI
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                5
                (0x00000005)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_IP
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                7
                (0x00000007)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_MATCH
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                0
                (0x00000000)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_NARROWS
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                1
                (0x00000001)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_OID
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                8
                (0x00000008)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_RFC822
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                1
                (0x00000001)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_SAME_TYPE
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                3
                (0x00000003)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_URI
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                6
                (0x00000006)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_WIDENS
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                2
                (0x00000002)
            
        
        
    
     
 
 
    
      
        public 
        static 
        final 
        int
      
        NAME_X400
    
      
        
        
  
      
    
      
  
    
        
        Constant Value: 
        
            
                3
                (0x00000003)
            
        
        
    
     
 
Public Methods
 
    
      
        public 
         
         
        abstract 
         
        int
      
      constrains
      (GeneralNameInterface inputName)
    
      
    
      
  Return type of constraint inputName places on this name:
   - NAME_DIFF_TYPE = -1: input name is different type from name (i.e. does not constrain).
   
- NAME_MATCH = 0: input name matches name.
   
- NAME_NARROWS = 1: input name narrows name (is lower in the naming subtree)
   
- NAME_WIDENS = 2: input name widens name (is higher in the naming subtree)
   
- NAME_SAME_TYPE = 3: input name does not match or narrow name, but is same type.
 
.  These results are used in checking NameConstraints during
 certification path verification.
      Parameters
      
        
          | inputName | to be checked for being constrained | 
      
   
  
     
 
 
    
      
        public 
         
         
        abstract 
         
        void
      
      encode
      (DerOutputStream out)
    
      
    
      
  Encode the name to the specified DerOutputStream.
      Parameters
      
        
          | out | the DerOutputStream to encode the GeneralName to. | 
      
   
  
      Throws
        
        
            | IOException | thrown if the GeneralName could not be
            encoded. | 
      
   
     
 
 
    
      
        public 
         
         
        abstract 
         
        int
      
      getType
      ()
    
      
    
      
  Return the type of the general name, as
 defined above.
 
 
 
    
      
        public 
         
         
        abstract 
         
        int
      
      subtreeDepth
      ()
    
      
    
      
  Return subtree depth of this name for purposes of determining
 NameConstraints minimum and maximum bounds and for calculating
 path lengths in name subtrees.