|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SESecurityManager
Field Summary | |
---|---|
static int |
BLOCK_ENCRYPTION_AES
|
static int |
BLOCK_ENCRYPTION_NONE
|
Method Summary | |
---|---|
void |
addCertificateListener(CertificateListener listener)
|
void |
addPasswordListener(PasswordListener listener)
|
byte[] |
calculateSHA1(byte[] data_in)
returns the SHA1 hash of the input data |
java.security.cert.Certificate |
createSelfSignedCertificate(java.lang.String alias,
java.lang.String cert_dn,
int strength)
creates and installs a certificate capable of supporting SSL of type MD5withRSA |
SEPublicKey |
decodePublicKey(byte[] encoded)
|
byte[] |
getIdentity()
Gets this azureus instance's unique random identity |
java.security.KeyStore |
getKeyStore()
|
SEPublicKey |
getPublicKey(int key_type,
java.lang.String reason_resource)
Gets the public key for this az instance of the supplied key type |
GenericMessageConnection |
getSTSConnection(GenericMessageConnection connection,
SEPublicKey my_public_key,
SEPublicKeyLocator key_locator,
java.lang.String reason_resource,
int block_encryption)
Returns a proxy generic STS connection for incoming connection requests |
java.security.KeyStore |
getTrustStore()
|
javax.net.ssl.SSLSocketFactory |
installServerCertificate(java.net.URL url)
Installs the SSL certificate necessary to support the connection |
void |
removeCertificateListener(CertificateListener listener)
|
void |
removePasswordListener(PasswordListener listener)
|
void |
runWithAuthenticator(java.net.Authenticator authenticator,
java.lang.Runnable task)
|
Field Detail |
---|
static final int BLOCK_ENCRYPTION_NONE
static final int BLOCK_ENCRYPTION_AES
Method Detail |
---|
void runWithAuthenticator(java.net.Authenticator authenticator, java.lang.Runnable task)
void addPasswordListener(PasswordListener listener)
void removePasswordListener(PasswordListener listener)
void addCertificateListener(CertificateListener listener)
void removeCertificateListener(CertificateListener listener)
byte[] calculateSHA1(byte[] data_in)
data_in
-
javax.net.ssl.SSLSocketFactory installServerCertificate(java.net.URL url)
url
- java.security.KeyStore getKeyStore() throws java.lang.Exception
java.lang.Exception
java.security.KeyStore getTrustStore() throws java.lang.Exception
java.lang.Exception
java.security.cert.Certificate createSelfSignedCertificate(java.lang.String alias, java.lang.String cert_dn, int strength) throws java.lang.Exception
alias
- alias - e.g. "mycert"cert_dn
- dn for the cert e.g. "CN=fred,OU=wap,O=wip,L=here,ST=there,C=GB"strength
- keyt strength - e.g. 1024
java.lang.Exception
byte[] getIdentity()
SEPublicKey getPublicKey(int key_type, java.lang.String reason_resource) throws java.lang.Exception
key_type
- see KEY_TYPE_x constants in SEPublicKeyreason_resource
- a message text resource giving the reason for the key being required
java.lang.Exception
SEPublicKey decodePublicKey(byte[] encoded) throws java.lang.Exception
java.lang.Exception
GenericMessageConnection getSTSConnection(GenericMessageConnection connection, SEPublicKey my_public_key, SEPublicKeyLocator key_locator, java.lang.String reason_resource, int block_encryption) throws java.lang.Exception
connection
- my_public_key
- key_locator
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |