|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.util.CAFilenameSplitter
public class CAFilenameSplitter
Utility class to split the CA filename. E.g. file name "/etc/grid-security/certificates/12adf342.4" would be split into m_baseFilename "/etc/grid-security/certificates/", m_hash "12adf342" and the m_number 4.
Field Summary | |
---|---|
java.lang.String |
m_baseFilename
The filename with path until the last dot that marks the suffix. |
java.lang.String |
m_hash
The hash, the filename without path and suffix or last dot. |
int |
m_number
The number, following the last dot. |
Constructor Summary | |
---|---|
CAFilenameSplitter()
|
Method Summary | |
---|---|
static CAFilenameSplitter |
splitCAFilename(java.lang.String caFilename)
Splits the filename and gives three fields. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String m_baseFilename
public java.lang.String m_hash
public int m_number
Constructor Detail |
---|
public CAFilenameSplitter()
Method Detail |
---|
public static CAFilenameSplitter splitCAFilename(java.lang.String caFilename) throws java.lang.IllegalArgumentException
caFilename
- The CA filename to split. E.g. /etc/grid-security/certificates/12adf342.4
java.lang.IllegalArgumentException
- Thrown in case the file name does not end with a number suffix.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |