edu.vt.middleware.crypt.x509.types
Class UserNotice

java.lang.Object
  extended by edu.vt.middleware.crypt.x509.types.UserNotice

public class UserNotice
extends Object

Representation of the UserNotice type defined in section 4.2.1.5 of RFC 2459.

Version:
$Revision: 427 $
Author:
Middleware Services

Constructor Summary
UserNotice()
          Creates an empty user notice.
UserNotice(NoticeReference ref)
          Creates a new instance with the given notice reference.
UserNotice(NoticeReference ref, String text)
          Creates a new instance with the given notice reference and explicit display text.
UserNotice(String text)
          Creates a new instance with the given explicit display text.
 
Method Summary
 boolean equals(Object obj)
          
 String getExplicitText()
           
 NoticeReference getNoticeRef()
           
 int hashCode()
          
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserNotice

public UserNotice()
Creates an empty user notice. Although this is technically supported by RFC 2459, an empty user notice is meaningless. We support it here to be strictly conformant with the RFC.


UserNotice

public UserNotice(NoticeReference ref)
Creates a new instance with the given notice reference.

Parameters:
ref - Notice reference.

UserNotice

public UserNotice(String text)
Creates a new instance with the given explicit display text.

Parameters:
text - Explicit display text.

UserNotice

public UserNotice(NoticeReference ref,
                  String text)
Creates a new instance with the given notice reference and explicit display text.

Parameters:
ref - Notice reference.
text - Explicit display text.
Method Detail

getNoticeRef

public NoticeReference getNoticeRef()
Returns:
The notice reference if defined otherwise null.

getExplicitText

public String getExplicitText()
Returns:
Explicit text for display if defined otherwise null.

toString

public String toString()
Overrides:
toString in class Object
Returns:
String representation containing the ExplicitText and NoticeReference fields.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.