|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.intersvrcom.URLAuthenticator
Supported API: true
Extendable: false
Field Summary | |
private static boolean |
AUTH_REQUIRED
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static int |
GRACE_PERIOD
|
private static boolean |
HTTP_THRU_PROXY
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
proxyHost
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Constructor Summary | |
URLAuthenticator()
|
Method Summary | |
static boolean |
checkAuthentication(HTTPRequest request)
Supported API: false |
private static boolean |
checkProxyThruHttp(String localUrl)
|
private static String |
decodeUTF8(String s)
|
private static String |
encodePathAndQueryString(String url)
|
private static PublicKey |
findKey(String siteURL)
|
private static PublicKey |
findKeyFromDB(String siteUrl)
|
private static PublicKey |
findKeyFromDisk(String siteURL)
|
static void |
main(String[] args)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(URLAuthenticator thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static String |
sign(String url)
If the URLConnection is initialized by Windchill client applications or browsers, use this method in order to force client host to be included in the digital signature.. |
static String |
sign(String url,
boolean internal)
Set "internal" to true if the http connection is issued by Windchill server ("internal" only), otherwise if the connection is initialized by Windchill client applications or browsers, this value should be set to false, in order to force client host to be included in the digital signature. |
static String |
sign(String url,
boolean internal,
Site site,
SiteSecurity security)
|
static String |
sign(String url,
Site site)
Sign the request with the site's private key Supported API: false |
static String |
sign(String url,
SiteSecurity siteSecurity,
Site site)
|
private static String |
sign(String url,
Site site,
SiteSecurity siteSecurity)
|
static String |
sign(String url,
String localSiteURL,
PrivateKey key)
Sign the url with the given key Supported API: false |
private static String |
sign0(String url,
PrivateKey key)
|
static boolean |
verify(String url,
byte[] sign,
PublicKey key)
Verify the URL with the given public key. |
static boolean |
verify(String url,
byte[] sign,
Site site)
Verify the URL with the site's public key. |
private static boolean |
verify0(String url,
byte[] sign,
PublicKey key)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final boolean VERBOSE
private static int GRACE_PERIOD
private static boolean HTTP_THRU_PROXY
private static String proxyHost
private static boolean AUTH_REQUIRED
Constructor Detail |
public URLAuthenticator()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(URLAuthenticator thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static String sign(String url) throws WTException
url
-
WTException
public static String sign(String url, boolean internal) throws WTException
url
- internal
-
WTException
public static String sign(String url, Site site) throws WTException
url
- site
-
WTException
public static String sign(String url, String localSiteURL, PrivateKey key) throws WTException
url
- localSiteURL
- key
-
WTException
public static boolean verify(String url, byte[] sign, Site site) throws WTException
url
- sign
- site
-
WTException
public static boolean verify(String url, byte[] sign, PublicKey key) throws WTException
url
- sign
- key
-
WTException
public static boolean checkAuthentication(HTTPRequest request) throws WTTransportException
request
-
WTTransportException
private static String sign0(String url, PrivateKey key) throws NoSuchAlgorithmException, Exception
NoSuchAlgorithmException
Exception
private static boolean verify0(String url, byte[] sign, PublicKey key) throws NoSuchAlgorithmException, Exception
NoSuchAlgorithmException
Exception
public static void main(String[] args) throws Exception
Exception
private static PublicKey findKey(String siteURL)
private static PublicKey findKeyFromDB(String siteUrl)
private static PublicKey findKeyFromDisk(String siteURL)
private static boolean checkProxyThruHttp(String localUrl)
private static String encodePathAndQueryString(String url) throws WTException
WTException
private static String decodeUTF8(String s)
public static String sign(String url, SiteSecurity siteSecurity, Site site) throws WTException
WTException
public static String sign(String url, boolean internal, Site site, SiteSecurity security) throws WTException
WTException
private static String sign(String url, Site site, SiteSecurity siteSecurity) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |