com.netflix.msl.MslKeyExchangeException Maven / Gradle / Ivy
/**
* Copyright (c) 2012-2014 Netflix, Inc. All rights reserved.
*
* 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.netflix.msl;
import com.netflix.msl.entityauth.EntityAuthenticationData;
import com.netflix.msl.tokens.MasterToken;
import com.netflix.msl.tokens.UserIdToken;
import com.netflix.msl.userauth.UserAuthenticationData;
/**
* Thrown when a key exchange exception occurs within the Message Security
* Layer.
*
* @author Wesley Miaw
*/
public class MslKeyExchangeException extends MslException {
private static final long serialVersionUID = -1272784987270064773L;
/**
* Construct a new MSL key exchange exception with the specified error.
*
* @param error the error.
*/
public MslKeyExchangeException(final MslError error) {
super(error);
}
/**
* Construct a new MSL key exchange exception with the specified error and
* details.
*
* @param error the error.
* @param details the details text.
*/
public MslKeyExchangeException(final MslError error, final String details) {
super(error, details);
}
/**
* Construct a new MSL key exchange exception with the specified error,
* details, and cause.
*
* @param error the error.
* @param details the details text.
* @param cause the cause.
*/
public MslKeyExchangeException(final MslError error, final String details, final Throwable cause) {
super(error, details, cause);
}
/**
* Construct a new MSL key exchange exception with the specified error and
* cause.
*
* @param error the error.
* @param cause the cause.
*/
public MslKeyExchangeException(final MslError error, final Throwable cause) {
super(error, cause);
}
/* (non-Javadoc)
* @see com.netflix.msl.MslException#setMasterToken(com.netflix.msl.tokens.MasterToken)
*/
@Override
public MslKeyExchangeException setMasterToken(final MasterToken masterToken) {
super.setMasterToken(masterToken);
return this;
}
/* (non-Javadoc)
* @see com.netflix.msl.MslException#setEntityAuthenticationData(com.netflix.msl.entityauth.EntityAuthenticationData)
*/
@Override
public MslKeyExchangeException setEntityAuthenticationData(final EntityAuthenticationData entityAuthData) {
super.setEntityAuthenticationData(entityAuthData);
return this;
}
/* (non-Javadoc)
* @see com.netflix.msl.MslException#setUserIdToken(com.netflix.msl.tokens.UserIdToken)
*/
@Override
public MslKeyExchangeException setUserIdToken(final UserIdToken userIdToken) {
super.setUserIdToken(userIdToken);
return this;
}
/* (non-Javadoc)
* @see com.netflix.msl.MslException#setUserAuthenticationData(com.netflix.msl.userauth.UserAuthenticationData)
*/
@Override
public MslKeyExchangeException setUserAuthenticationData(final UserAuthenticationData userAuthData) {
super.setUserAuthenticationData(userAuthData);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy