com.atlassian.security.auth.trustedapps
Interface TrustedApplication

All Superinterfaces:
Application
All Known Implementing Classes:
DefaultTrustedApplication

public interface TrustedApplication
extends Application

Represents a trusted remote application. This object used to verify a request claiming to have come from this application. Such a request is required to have an encrypted certificate and application ID. The certificate decryption and validation is a responsibility of this object.


Method Summary
 ApplicationCertificate decode(EncryptedCertificate certificate, javax.servlet.http.HttpServletRequest request)
          This method decodes and validates the received certificate.
 
Methods inherited from interface com.atlassian.security.auth.trustedapps.Application
getID, getPublicKey
 

Method Detail

decode

ApplicationCertificate decode(EncryptedCertificate certificate,
                              javax.servlet.http.HttpServletRequest request)
                              throws InvalidCertificateException
This method decodes and validates the received certificate.

Parameters:
certificateStr - - certificate string claiming to have come from this application
Returns:
ApplicationCertificate object if validation succeeds
Throws:
InvalidCertificateException - - if either decryption or validation fails


Copyright © 2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.