Coverage Report - org.kuali.rice.core.api.security.credentials.CredentialsSource
 
Classes in this File Line Coverage Branch Coverage Complexity
CredentialsSource
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.core.api.security.credentials;
 17  
 
 18  
 /**
 19  
  * Inteface for abstracting out how we obtain credentials to access secure
 20  
  * applications across the bus.
 21  
  * 
 22  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 23  
  * @since 0.9
 24  
  */
 25  
 public interface CredentialsSource {
 26  
 
 27  
     /**
 28  
      * Returns the supported CredentialsType. This should never be null.
 29  
      * 
 30  
      * @return the supported credentials type.
 31  
      */
 32  
     CredentialsType getSupportedCredentialsType();
 33  
 
 34  
     /**
 35  
      * Returns the SecurityContext which should have the proper credentials to
 36  
      * give to any system requiring credentials. This class has no guarantees
 37  
      * what a user will do with the credentials and should thus always return a
 38  
      * thread-safe version.
 39  
      * 
 40  
      * @param serviceDefinition The Service Definition for which we want
 41  
      * credentials for.
 42  
      * @return the credentials, or null if credentials could not be obtained.
 43  
      */
 44  
     Credentials getCredentials(String serviceEndpoint);
 45  
 }