Coverage report

  %line %branch
org.apache.jetspeed.sso.impl.SSOContextImpl
0% 
0% 

 1  
 /*
 2  
 * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
 * contributor license agreements.  See the NOTICE file distributed with
 4  
 * this work for additional information regarding copyright ownership.
 5  
 * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
 * (the "License"); you may not use this file except in compliance with
 7  
 * the License.  You may obtain a copy of the License at
 8  
 * 
 9  
 *      http://www.apache.org/licenses/LICENSE-2.0
 10  
 * 
 11  
 * Unless required by applicable law or agreed to in writing, software
 12  
 * distributed under the License is distributed on an "AS IS" BASIS,
 13  
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
 * See the License for the specific language governing permissions and
 15  
 * limitations under the License.
 16  
 */
 17  
 
 18  
 package org.apache.jetspeed.sso.impl;
 19  
 
 20  
 import java.io.Serializable;
 21  
 
 22  
 import org.apache.jetspeed.sso.SSOContext;
 23  
 
 24  
 /**
 25  
 * SSOContextImpl
 26  
 * 	Class holding credential information 
 27  
 *
 28  
 * @author <a href="mailto:rogerrut@apache.org">Roger Ruttimann</a>
 29  
 * @version $Id: SSOContextImpl.java 516448 2007-03-09 16:25:47Z ate $
 30  
 */
 31  
 public class SSOContextImpl implements SSOContext, Serializable
 32  
 {
 33  
 	private long	remotePrincipalId;
 34  
 	private String remoteCredential;
 35  
 	private String remotePrincipal;
 36  
     private String portalPrincipal;
 37  
 	
 38  
 	/**
 39  
 	 * Constructor takes all arguments since members can't be altered
 40  
 	 */
 41  
 	public SSOContextImpl(long remotePrincipalId, String remotePrincipal, String remoteCredential) 
 42  
     {
 43  0
 		super();		
 44  0
 		this.remotePrincipalId = remotePrincipalId;
 45  0
 		this.remotePrincipal = remotePrincipal;
 46  0
 		this.remoteCredential = remoteCredential;
 47  0
 	}
 48  
 
 49  
     public SSOContextImpl(long remotePrincipalId, String remotePrincipal, String remoteCredential, String portalPrincipal) 
 50  
     {
 51  0
         super();        
 52  0
         this.remotePrincipalId = remotePrincipalId;
 53  0
         this.remotePrincipal = remotePrincipal;
 54  0
         this.remoteCredential = remoteCredential;
 55  0
         this.portalPrincipal = portalPrincipal;
 56  0
     }
 57  
     
 58  
 	/* (non-Javadoc)
 59  
 	 * @see org.apache.jetspeed.sso.SSOContext#getRemotePrincipalId()
 60  
 	 */
 61  
 	public long  getRemotePrincipalId() 
 62  
     {		
 63  0
 		return this.remotePrincipalId;
 64  
 	}
 65  
 
 66  
 	/* (non-Javadoc)
 67  
 	 * @see org.apache.jetspeed.sso.SSOContext#getRemotePrincipal()
 68  
 	 */
 69  
 	public String getRemotePrincipalName() 
 70  
     {
 71  0
 		return this.remotePrincipal;
 72  
 	}
 73  
 
 74  
 	/* (non-Javadoc)
 75  
 	 * @see org.apache.jetspeed.sso.SSOContext#getRemoteCredential()
 76  
 	 */
 77  
 	public String getRemoteCredential() 
 78  
     {		
 79  0
 		return this.remoteCredential;
 80  
 	}
 81  
 
 82  
     /* (non-Javadoc)
 83  
      * @see org.apache.jetspeed.sso.SSOContext#getPortalPrincipal()
 84  
      */
 85  
     public String getPortalPrincipalName() 
 86  
     {
 87  0
         return this.portalPrincipal;
 88  
     }
 89  
     
 90  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.