org.adeptnet.auth.sso.common.SSOCallback Maven / Gradle / Ivy
/*
* Copyright 2015 Francois Steyn - Adept Internet (PTY) LTD ([email protected]).
*
* 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 org.adeptnet.auth.sso.common;
import javax.security.auth.Subject;
import javax.security.auth.callback.Callback;
/**
*
* @author Francois Steyn - Adept Internet (PTY) LTD ([email protected])
*/
public class SSOCallback implements Callback, java.io.Serializable {
private static final long serialVersionUID = 20150101001L;
private final Subject subject;
private SSOCredentials credentials;
public SSOCredentials getCredentials() {
return credentials;
}
public void setCredentials(final SSOCredentials credentials) {
this.credentials = credentials;
}
public SSOCallback(final Subject subject) {
this.subject = subject;
}
public Subject getSubject() {
return subject;
}
}