Coverage Report - org.mule.module.pgp.PGPAuthentication
 
Classes in this File Line Coverage Branch Coverage Complexity
PGPAuthentication
0%
0/16
N/A
1
 
 1  
 /*
 2  
  * $Id: PGPAuthentication.java 19191 2010-08-25 21:05:23Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.module.pgp;
 12  
 
 13  
 import org.mule.api.security.Authentication;
 14  
 
 15  
 import cryptix.message.Message;
 16  
 import cryptix.pki.KeyBundle;
 17  
 
 18  
 import java.util.Map;
 19  
 
 20  
 public class PGPAuthentication implements Authentication
 21  
 {
 22  0
     boolean authenticated = false;
 23  
     private String userName;
 24  
     private Message message;
 25  0
     private KeyBundle userKeyBundle = null;
 26  
 
 27  
     public PGPAuthentication(String userName, Message message)
 28  0
     {
 29  0
         this.userName = userName;
 30  0
         this.message = message;
 31  0
     }
 32  
 
 33  
     public void setAuthenticated(boolean b)
 34  
     {
 35  0
         authenticated = b;
 36  0
     }
 37  
 
 38  
     public boolean isAuthenticated()
 39  
     {
 40  0
         return authenticated;
 41  
     }
 42  
 
 43  
     public Object getCredentials()
 44  
     {
 45  0
         return message;
 46  
     }
 47  
 
 48  
     public Object getDetails()
 49  
     {
 50  0
         return userKeyBundle;
 51  
     }
 52  
 
 53  
     protected void setDetails(KeyBundle kb)
 54  
     {
 55  0
         userKeyBundle = kb;
 56  0
     }
 57  
 
 58  
     public Object getPrincipal()
 59  
     {
 60  0
         return userName;
 61  
     }
 62  
 
 63  
     public Map getProperties()
 64  
     {
 65  
         // TODO
 66  0
         return null;
 67  
     }
 68  
 
 69  
     public void setProperties(Map securityMode)
 70  
     {
 71  
         // TODO
 72  
 
 73  0
     }
 74  
 }