com.vodafone360.people.datatypes
Class PublicKeyDetails

java.lang.Object
  extended by com.vodafone360.people.datatypes.BaseDataType
      extended by com.vodafone360.people.datatypes.PublicKeyDetails

public class PublicKeyDetails
extends BaseDataType

BaseDataType encapsulating Public key details retrieved from or issued to People server.


Nested Class Summary
private static class PublicKeyDetails.MemberData
          Enumeration of data items in PublicKeyDetails PArcel.
private static class PublicKeyDetails.Tags
          Tags associated with PublicKeyDetails item.
 
Field Summary
 byte[] mExponential
           
 java.lang.String mKeyBase64
           
 byte[] mKeyX509
           
 byte[] mModulus
           
 
Constructor Summary
PublicKeyDetails()
           
 
Method Summary
static PublicKeyDetails createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
          Create PublicKeyDetails from Hashtable.
 int describeContents()
          
private  PublicKeyDetails.Tags findTag(java.lang.String tag)
          Find Tags item for specified String.
 java.lang.String name()
          Return name of the current Data-type.
private  void setValue(PublicKeyDetails.Tags tag, java.lang.Object value)
          Sets the value of the member data item associated with the specified tag.
 java.lang.String toString()
          
 void writeToParcel(Parcel dest, int flags)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mExponential

public byte[] mExponential

mModulus

public byte[] mModulus

mKeyX509

public byte[] mKeyX509

mKeyBase64

public java.lang.String mKeyBase64
Constructor Detail

PublicKeyDetails

public PublicKeyDetails()
Method Detail

findTag

private PublicKeyDetails.Tags findTag(java.lang.String tag)
Find Tags item for specified String.

Parameters:
tag - String value to find Tags item for
Returns:
Tags item for specified String, null otherwise

name

public java.lang.String name()
Return name of the current Data-type.

Specified by:
name in class BaseDataType
Returns:
String containing name of the data-type.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

createFromHashtable

public static PublicKeyDetails createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create PublicKeyDetails from Hashtable.

Parameters:
hash - Hashtable containing Public key information.
Returns:
PublicKeyDetails generated from HAshtable.

setValue

private void setValue(PublicKeyDetails.Tags tag,
                      java.lang.Object value)
Sets the value of the member data item associated with the specified tag.

Parameters:
tag - Current tag
value - Value associated with the tag

describeContents

public int describeContents()


writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)



JavaDoc