public class AuthInfo1CreateRequest extends DomainSimpleRequest
Modifier and Type | Field and Description |
---|---|
private byte[] |
authInfoHash
the hash of the authinfo
|
private java.util.Date |
expirationDate
the requested expiration date
|
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
addElements, getDomainName, getEncodedDomainName, requestToXml, setDomainName, setDomainName
getClientTxnID, getProtocolVersion, setClientTxnID, toList, toXml
private byte[] authInfoHash
private java.util.Date expirationDate
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 passwordpublic AuthInfo1CreateResponse execute(Port port) throws java.io.IOException
protected 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 builderorg.w3c.dom.DOMException
- on DOM exceptionsEncodeException
- 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 filledEncodeException
- 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
Copyright © 2005-2013 Knipp Medien und Kommunikation GmbH