|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.utils.WebdavUtil
public class WebdavUtil
This is a static class which is supposed to do the webdav related issues. No instance of this class is necessary to invoke the metods since it does not store any values. All methods should be idempotent.
Constructor Summary | |
---|---|
WebdavUtil()
|
Method Summary | |
---|---|
static java.lang.String |
convertDN2URI(java.lang.String dn)
Converts a String from regular Distinguised Name in the form of: "c=gb, o=permis, cn=John Smith" into a URL string in the form of: "/c=gb/o=Permis/cn=John Smith/ |
static boolean |
doesFileExist(java.lang.String url)
|
static javax.naming.directory.Attributes |
getACs(java.security.Principal user,
java.lang.String host,
int port)
This method is used to initalise an HTTP based WebDAV Repository it initialises the HTTP WebDAV socket object and then passes that object with its initialisation parameters to the root getACs method |
static javax.naming.directory.Attributes |
getACs(java.security.Principal user,
java.lang.String host,
int port,
java.lang.String p12filename,
java.lang.String p12passphrase)
This method is used to initalise an SSL based WebDAV Repository it initialise the SSL WebDAV socket object and then passes that object with its initialisation parameters to the root getACs method |
static javax.naming.directory.Attributes |
getACs(java.security.Principal user,
java.lang.String host,
int port,
WebDAVSocket socket)
The root getACs method that is used to initialise the connection and request and receive attributes from the WebDAV repository |
static java.lang.String |
getHostFromURL(java.lang.String revLoc)
|
static java.lang.String |
getNameFromURL(java.lang.String location)
|
static java.lang.String |
getPortFromURL(java.lang.String revLoc)
|
static byte[] |
getRawAC(java.lang.String url)
|
static java.lang.String[] |
getSplitDN(java.lang.String dn)
|
static java.lang.String |
getURIFromURL(java.lang.String revLoc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebdavUtil()
Method Detail |
---|
public static java.lang.String convertDN2URI(java.lang.String dn) throws PbaException
dn
-
RFC2253ParsingException
PbaException
public static java.lang.String[] getSplitDN(java.lang.String dn)
public static java.lang.String getHostFromURL(java.lang.String revLoc)
public static java.lang.String getPortFromURL(java.lang.String revLoc)
public static java.lang.String getURIFromURL(java.lang.String revLoc)
public static java.lang.String getNameFromURL(java.lang.String location)
public static boolean doesFileExist(java.lang.String url)
public static javax.naming.directory.Attributes getACs(java.security.Principal user, java.lang.String host, int port, java.lang.String p12filename, java.lang.String p12passphrase) throws RepositoryException
user
- - The Principal about whom the query is madehost
- - The WebDAV repositories locationport
- - The WebDAV repositories portp12filename
- - The filename of the p12 file for client authnp12passphrase
- - The p12 files passphrase
RepositoryException
public static javax.naming.directory.Attributes getACs(java.security.Principal user, java.lang.String host, int port) throws RepositoryException
user
- - The Principal about whom the query is madehost
- - The WebDAV repositories locationport
- - The WebDAV repositories port
RepositoryException
public static javax.naming.directory.Attributes getACs(java.security.Principal user, java.lang.String host, int port, WebDAVSocket socket) throws RepositoryException
user
- - The Principal about whom the query is madehost
- - The WebDAV repositories locationport
- - The WebDAV repositories portsocket
- - A WebDAVSocket object representing the connection
to the repository object
RepositoryException
public static byte[] getRawAC(java.lang.String url) throws ACNotFoundException
ACNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |