~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to clc/modules/wsstack/src/main/java/com/eucalyptus/ws/handlers/wssecurity/InternalWsSecHandler.java

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
      final MappingHttpMessage httpRequest = ( MappingHttpMessage ) o;
113
113
      SOAPEnvelope envelope = httpRequest.getSoapEnvelope( );
114
114
      X509Certificate cert = WSSecurity.getVerifiedCertificate( envelope );
115
 
      if( !cert.equals( SystemCredentialProvider.getCredentialProvider( Component.eucalyptus ).getCertificate( ) ) ) {
116
 
        throw new WSSecurityException( WSSecurityException.FAILED_AUTHENTICATION );
 
115
      if(cert != null) {
 
116
        if( !cert.equals( SystemCredentialProvider.getCredentialProvider( Component.eucalyptus ).getCertificate( ) ) ) {
 
117
          throw new WSSecurityException( WSSecurityException.FAILED_AUTHENTICATION );
 
118
        }
117
119
      }
118
120
    }
119
121
  }