
com.frameworkset.platform.security.authentication.Subject Maven / Gradle / Ivy
/*
* Copyright 2008 bbossgroups
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.frameworkset.platform.security.authentication;
import java.security.Principal;
/**
* Title: Subject.java
* Description:
* bboss workgroup
* Copyright (c) 2008
* @Date 2014年5月8日
* @author biaoping.yin
* @version 3.8.0
*/
public class Subject {
private Credential credential;
private Principal principal;
public Subject()
{
// credential = new ArrayList();
// principal = new ArrayList();
}
public Credential getCredential() {
return credential;
}
public void setCredential(Credential credential) {
this.credential = credential;
}
public Principal getPrincipal() {
return principal;
}
public void setPrincipal( Principal principal) {
this.principal = principal;
}
public void addAuthPrincipal(Principal authPrincipal)
{
this.principal =authPrincipal;
}
public void addCredential(Credential credential)
{
this.credential =credential;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy