com.karmasphere.share.persist.idtype
Class Ip4IdentityType

java.lang.Object
  extended by com.karmasphere.share.persist.IdentityType
      extended by com.karmasphere.share.persist.idtype.Ip4IdentityType
All Implemented Interfaces:
Comparable

public class Ip4IdentityType
extends IdentityType


Nested Class Summary
 
Nested classes/interfaces inherited from class com.karmasphere.share.persist.IdentityType
IdentityType.Discriminated
 
Field Summary
static String KEYNAME
           
 
Fields inherited from class com.karmasphere.share.persist.IdentityType
CHARSET, DOMAIN, EMAIL, IP4, IP6, MAX_TYPES, OPAQUE, URL
 
Constructor Summary
Ip4IdentityType()
           
 
Method Summary
 byte[] fromString(String str)
          Converts a "common" human-readable version the identity data to a byte array.
 String toString(byte[] data)
          Returns a human-readable version of the byte array associated with this identity type.
 
Methods inherited from class com.karmasphere.share.persist.IdentityType
compareTo, equals, filter, get, get, getCondition, getDescription, getId, getKeyname, getName, getTypes, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEYNAME

public static final String KEYNAME
See Also:
Constant Field Values
Constructor Detail

Ip4IdentityType

public Ip4IdentityType()
Method Detail

fromString

public byte[] fromString(String str)
                  throws IdentityFormatException
Description copied from class: IdentityType
Converts a "common" human-readable version the identity data to a byte array.

Overrides:
fromString in class IdentityType
Throws:
IdentityFormatException

toString

public String toString(byte[] data)
Description copied from class: IdentityType
Returns a human-readable version of the byte array associated with this identity type.

Overrides:
toString in class IdentityType


Copyright © 2004-2005 Karamsphere. All Rights Reserved.