|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.request.Request
de.knipp.rritoolkit.request.DomainSimpleRequest
de.knipp.rritoolkit.request.AuthInfo1CreateRequest
public class AuthInfo1CreateRequest
class that represents an AuthInfo 1 create request
Field Summary | |
---|---|
private byte[] |
authInfoHash
the hash of the authinfo |
private java.util.Date |
expirationDate
the requested expiration date |
Constructor Summary | |
---|---|
AuthInfo1CreateRequest()
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
byte[] hash)
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
byte[] hash,
java.util.Date date)
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
java.lang.String authInfo)
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName,
byte[] hash)
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName,
byte[] hash,
java.util.Date date)
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
java.lang.String authInfo,
java.util.Date date)
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName,
java.lang.String authInfo)
constructor |
|
AuthInfo1CreateRequest(java.lang.String theDomainName,
java.lang.String theEncodedDomainName,
java.lang.String authInfo,
java.util.Date date)
constructor |
Method Summary | |
---|---|
protected void |
addAttributes(XmlBuilder xb)
allow the addition of attributes to the request. |
AuthInfo1CreateResponse |
execute(Port port)
execute the this request on the given port. |
protected java.lang.String |
getActionCode()
return the action string for this request |
byte[] |
getAuthInfoHash()
return the binary hash of the AuthInfo |
java.util.Date |
getExpirationDate()
return the requested expiration date of the AuthInfo |
protected java.lang.String |
getRequestElementName()
return the XML element name |
protected void |
requestToKVList(KVList list)
method that needs to be implemented by subclasses for the key-value list conversion |
void |
setAuthInfo(java.lang.String authInfo)
set the AuthInfo password. |
void |
setAuthInfoHash(byte[] hash)
set the binary hash of the AuthInfo |
void |
setExpirationDate(java.util.Date date)
set the requested expiration date of the AuthInfo |
java.lang.String |
toString()
return a string representation for debugging purposes |
Methods inherited from class de.knipp.rritoolkit.request.DomainSimpleRequest |
---|
getDomainName, getEncodedDomainName, requestToXml, setDomainName, setDomainName |
Methods inherited from class de.knipp.rritoolkit.request.Request |
---|
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private byte[] authInfoHash
private java.util.Date expirationDate
Constructor Detail |
---|
public AuthInfo1CreateRequest()
public AuthInfo1CreateRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName, byte[] hash, java.util.Date date)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII only domainshash
- the binary hashdate
- the requested expiration date,
may be null
public AuthInfo1CreateRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName, java.lang.String authInfo, java.util.Date date)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII only domainsauthInfo
- the AuthInfo passworddate
- the requested expiration date,
may be null
public AuthInfo1CreateRequest(java.lang.String theDomainName, byte[] hash, java.util.Date date)
theDomainName
- the domain namehash
- the binary hashdate
- the requested expiration date,
may be null
public AuthInfo1CreateRequest(java.lang.String theDomainName, java.lang.String authInfo, java.util.Date date)
theDomainName
- the domain nameauthInfo
- the AuthInfo passworddate
- the requested expiration date,
may be null
public AuthInfo1CreateRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName, byte[] hash)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII only domainshash
- the binary hashpublic AuthInfo1CreateRequest(java.lang.String theDomainName, java.lang.String theEncodedDomainName, java.lang.String authInfo)
theDomainName
- the domain nametheEncodedDomainName
- the encoded domain name, may be null
for ASCII only domainsauthInfo
- the AuthInfo passwordpublic AuthInfo1CreateRequest(java.lang.String theDomainName, byte[] hash)
theDomainName
- the domain namehash
- the binary hashpublic AuthInfo1CreateRequest(java.lang.String theDomainName, java.lang.String authInfo)
theDomainName
- the domain nameauthInfo
- the AuthInfo passwordMethod Detail |
---|
public AuthInfo1CreateResponse execute(Port port) throws java.io.IOException
execute
in class Request
port
- the port on which this request shall
be executed
java.io.IOException
- if the execution failedprotected java.lang.String getRequestElementName()
getRequestElementName
in class DomainSimpleRequest
protected void addAttributes(XmlBuilder xb) throws org.w3c.dom.DOMException, EncodeException
addAttributes
in class DomainSimpleRequest
xb
- the XML builder
org.w3c.dom.DOMException
- on DOM exceptions
EncodeException
- if the encoding fails for some reasonprotected java.lang.String getActionCode()
getActionCode
in class Request
protected void requestToKVList(KVList list) throws EncodeException
requestToKVList
in class DomainSimpleRequest
list
- the list that has to be filled
EncodeException
- if the encoding fails for some reasonpublic java.lang.String toString()
toString
in class DomainSimpleRequest
public byte[] getAuthInfoHash()
public void setAuthInfoHash(byte[] hash)
hash
- the hash (no copy is made)public void setAuthInfo(java.lang.String authInfo)
authInfo
- the AuthInfo passwordpublic java.util.Date getExpirationDate()
null
public void setExpirationDate(java.util.Date date)
date
- the date, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |