public class HostTxtEntry
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static java.lang.String |
ACTION_ADDDEST |
|
static java.lang.String |
ACTION_ADDNAME |
|
static java.lang.String |
ACTION_ADDSUBDOMAIN |
|
static java.lang.String |
ACTION_CHANGEDEST |
|
static java.lang.String |
ACTION_CHANGENAME |
|
static java.lang.String |
ACTION_REMOVE |
|
static java.lang.String |
ACTION_REMOVEALL |
|
static java.lang.String |
ACTION_UPDATE |
|
static char |
KV_SEPARATOR |
|
static java.lang.String |
PROP_ACTION |
|
static java.lang.String |
PROP_DATE |
|
static java.lang.String |
PROP_DEST |
|
static java.lang.String |
PROP_EXPIRES |
|
static java.lang.String |
PROP_NAME |
|
static java.lang.String |
PROP_OLDDEST |
|
static java.lang.String |
PROP_OLDNAME |
|
static java.lang.String |
PROP_OLDSIG |
|
static char |
PROP_SEPARATOR |
|
static java.lang.String |
PROP_SIG |
|
static java.lang.String |
PROPS_SEPARATOR |
コンストラクタ | 説明 |
---|---|
HostTxtEntry(java.lang.String sprops) |
A 'remove' entry.
|
HostTxtEntry(java.lang.String name,
java.lang.String dest) |
Properties will be null
|
HostTxtEntry(java.lang.String name,
java.lang.String dest,
java.lang.String sprops) |
|
HostTxtEntry(java.lang.String name,
java.lang.String dest,
OrderedProperties props) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
equals(java.lang.Object o) |
Compares Destination only, not properties
|
java.lang.String |
getDest() |
|
java.lang.String |
getName() |
|
OrderedProperties |
getProps() |
|
int |
hashCode() |
|
boolean |
hasValidInnerSig() |
Verify with the "olddest" property's public key using the "oldsig" property
|
boolean |
hasValidRemoveSig() |
Verify with the "dest" property's public key using the "sig" property
|
boolean |
hasValidSig() |
Verify with the dest public key using the "sig" property
|
void |
sign(SigningPrivateKey spk) |
Sign and set the "sig" property
Must have been constructed with non-null properties.
|
void |
signInner(SigningPrivateKey spk) |
Sign and set the "oldsig" property
Must have been constructed with non-null properties.
|
void |
signRemove(SigningPrivateKey spk) |
Sign as a "remove" line #!dest=dest#name=name#k1=v1#sig=sig...]
Must have been constructed with non-null properties.
|
void |
write(java.io.BufferedWriter out) |
Write as a standard line name=dest[#!k1=v1#k2=v2...]
Includes newline.
|
void |
write(java.io.Writer out) |
Write as a standard line name=dest[#!k1=v1#k2=v2...]
Does not include newline.
|
void |
writeProps(java.io.Writer out) |
Write the props part (if any) only, without newline
|
void |
writeRemove(java.io.Writer out) |
Write as a "remove" line #!dest=dest#name=name#k1=v1#sig=sig...]
This works whether constructed with name and dest, or just properties.
|
void |
writeRemoveLine(java.io.BufferedWriter out) |
Write as a "remove" line #!dest=dest#name=name#k1=v1#sig=sig...]
This works whether constructed with name and dest, or just properties.
|
public static final char KV_SEPARATOR
public static final java.lang.String PROPS_SEPARATOR
public static final char PROP_SEPARATOR
public static final java.lang.String PROP_ACTION
public static final java.lang.String PROP_DATE
public static final java.lang.String PROP_DEST
public static final java.lang.String PROP_EXPIRES
public static final java.lang.String PROP_NAME
public static final java.lang.String PROP_OLDDEST
public static final java.lang.String PROP_OLDNAME
public static final java.lang.String PROP_OLDSIG
public static final java.lang.String PROP_SIG
public static final java.lang.String ACTION_ADDDEST
public static final java.lang.String ACTION_ADDNAME
public static final java.lang.String ACTION_ADDSUBDOMAIN
public static final java.lang.String ACTION_CHANGEDEST
public static final java.lang.String ACTION_CHANGENAME
public static final java.lang.String ACTION_REMOVE
public static final java.lang.String ACTION_REMOVEALL
public static final java.lang.String ACTION_UPDATE
public HostTxtEntry(java.lang.String name, java.lang.String dest)
public HostTxtEntry(java.lang.String name, java.lang.String dest, java.lang.String sprops) throws java.lang.IllegalArgumentException
sprops
- line part after the #!, non-nulljava.lang.IllegalArgumentException
- on dup key in sprops and other errorspublic HostTxtEntry(java.lang.String sprops) throws java.lang.IllegalArgumentException
sprops
- line part after the #!, non-nulljava.lang.IllegalArgumentException
- on dup key in sprops and other errorspublic HostTxtEntry(java.lang.String name, java.lang.String dest, OrderedProperties props)
props
- may be nullpublic java.lang.String getName()
public java.lang.String getDest()
public OrderedProperties getProps()
public void write(java.io.BufferedWriter out) throws java.io.IOException
java.io.IOException
public void write(java.io.Writer out) throws java.io.IOException
java.io.IOException
public void writeRemoveLine(java.io.BufferedWriter out) throws java.io.IOException
java.io.IOException
public void writeRemove(java.io.Writer out) throws java.io.IOException
java.io.IOException
public void writeProps(java.io.Writer out) throws java.io.IOException
java.io.IOException
public boolean hasValidSig()
public boolean hasValidInnerSig()
public boolean hasValidRemoveSig()
public int hashCode()
hashCode
クラス内 java.lang.Object
public boolean equals(java.lang.Object o)
equals
クラス内 java.lang.Object
public void sign(SigningPrivateKey spk)
public void signInner(SigningPrivateKey spk)
public void signRemove(SigningPrivateKey spk)