com.atlassian.security.auth.trustedapps
Class DefaultTrustedApplication
java.lang.Object
com.atlassian.security.auth.trustedapps.DefaultTrustedApplication
- All Implemented Interfaces:
- Application, TrustedApplication
- public class DefaultTrustedApplication
- extends java.lang.Object
- implements TrustedApplication
very basic implementation
Constructor Summary |
DefaultTrustedApplication(EncryptionProvider encryptionProvider,
java.security.PublicKey publicKey,
java.lang.String id,
long certificateTimeout,
RequestValidator requestValidator)
|
DefaultTrustedApplication(EncryptionProvider encryptionProvider,
java.security.PublicKey key,
java.lang.String id,
long certificateTimeout,
URLMatcher urlMatcher,
IPMatcher ipMatcher)
|
DefaultTrustedApplication(java.security.PublicKey key,
java.lang.String id,
long certificateTimeout,
URLMatcher urlMatcher,
IPMatcher ipMatcher)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected final java.lang.String id
publicKey
protected final java.security.PublicKey publicKey
certificateTimeout
protected final long certificateTimeout
requestValidator
protected final RequestValidator requestValidator
encryptionProvider
protected final EncryptionProvider encryptionProvider
DefaultTrustedApplication
public DefaultTrustedApplication(EncryptionProvider encryptionProvider,
java.security.PublicKey publicKey,
java.lang.String id,
long certificateTimeout,
RequestValidator requestValidator)
DefaultTrustedApplication
public DefaultTrustedApplication(EncryptionProvider encryptionProvider,
java.security.PublicKey key,
java.lang.String id,
long certificateTimeout,
URLMatcher urlMatcher,
IPMatcher ipMatcher)
DefaultTrustedApplication
public DefaultTrustedApplication(java.security.PublicKey key,
java.lang.String id,
long certificateTimeout,
URLMatcher urlMatcher,
IPMatcher ipMatcher)
decode
public ApplicationCertificate decode(EncryptedCertificate encCert,
javax.servlet.http.HttpServletRequest request)
throws InvalidCertificateException
- Description copied from interface:
TrustedApplication
- This method decodes and validates the received certificate.
- Specified by:
decode
in interface TrustedApplication
- Returns:
ApplicationCertificate
object if validation succeeds
- Throws:
InvalidCertificateException
- - if either decryption or validation fails
getID
public java.lang.String getID()
- Specified by:
getID
in interface Application
- Returns:
- Unique ID representing this application
getPublicKey
public java.security.PublicKey getPublicKey()
- Description copied from interface:
Application
- Public key of this application. Public key will be sent to the remote server when requesting it to trust this application.
- Specified by:
getPublicKey
in interface Application
Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.