本文整理了Java中org.wildfly.security.mechanism.AuthenticationMechanismException.setStackTrace()
方法的一些代码示例,展示了AuthenticationMechanismException.setStackTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthenticationMechanismException.setStackTrace()
方法的具体详情如下:
包路径:org.wildfly.security.mechanism.AuthenticationMechanismException
类名称:AuthenticationMechanismException
方法名:setStackTrace
暂无
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechNoPasswordGiven() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechNoPasswordGiven$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechMalformedFields = "ELY05010: Authentication mechanism authentication failed due to one or more malformed fields";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechPasswordNotVerified() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechPasswordNotVerified$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechAuthorizationFailed2 = "ELY05014: Authentication mechanism authorization failed: \"%s\" running as \"%s\"";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechInitialChallengeMustBeEmpty() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechInitialChallengeMustBeEmpty$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnableToSetChannelBinding = "ELY05023: Unable to set channel binding";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechMechanismToOidMappingFailed(final Exception e) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechMechanismToOidMappingFailed$str()), e);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnableToDisposeGssCOntext= "ELY05027: Unable to dispose of GSSContext";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechUnableToCreateGssContext(final Exception e) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechUnableToCreateGssContext$str()), e);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnableToSetGssCOntextRequestFlags= "ELY05030: Unable to set GSSContext request flags";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechInvalidServerMessageWithCause(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechInvalidServerMessageWithCause$str()), cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechInvalidClientMessage = "ELY05045: Invalid client message";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechServerAuthenticityCannotBeVerified() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechServerAuthenticityCannotBeVerified$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechCallbackHandlerDoesNotSupportUserName = "ELY05050: Callback handler does not support user name";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechClientSentExtraMessage() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechClientSentExtraMessage$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechServerSentExtraMessage = "ELY05057: Server sent extra message";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechMacAlgorithmNotSupported(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechMacAlgorithmNotSupported$str()), cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechKeywordCannotBeEmpty = "ELY05065: keyword cannot be empty";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechNonceCountMustEqual(final int expected, final int actual) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechNonceCountMustEqual$str(), expected, actual));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnsupportedCharset = "ELY05085: Server is set to not support %s charset";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechMismatchedWrongDigestUri(final String actual) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechMismatchedWrongDigestUri$str(), actual));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnexpectedQop = "ELY05089: Unexpected qop value: \"%s\"";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechAuthenticationNameIsEmpty() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechAuthenticationNameIsEmpty$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechAnOnymousAuthorizationDenied= "ELY05093: Authorization for anonymous access is denied";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechCallbackHandlerNotProvidedServerCertificate() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechCallbackHandlerNotProvidedServerCertificate$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechCallbackHandlerNotProvidedClientCertificate = "ELY05102: Callback handler not provided client certificate";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechClientIdentifierMismatch() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechClientIdentifierMismatch$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnableToDetermineClientName = "ELY05105: Unable to determine client name";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechUnableToDetermineClientName(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechUnableToDetermineClientName$str()), cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechCallbackHandlerNotProvidedPrivateKey = "ELY05106: Callback handler not provided private key";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechUnableToWrapMessage(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechUnableToWrapMessage$str()), cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnableToUnwrapMessage = "ELY05116: Unable to unwrap message";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechUnableToUnwrapSecurityLayerNegotiationMessage(final Throwable cause) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechUnableToUnwrapSecurityLayerNegotiationMessage$str()), cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechInvalidMessageOnUnwrapping= "ELY05118: Invalid message of length %d on unwrapping";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechSelectedUnofferedQop() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechSelectedUnofferedQop$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechNoSecurityLayerButLengthReceived = "ELY05123: No security layer selected but message length received";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechUnableToRetrievePassword(final String userName) {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechUnableToRetrievePassword$str(), userName));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechUnableToUpdatePassword = "ELY05162: Unable to update password for \"%s\"";
代码示例来源:origin: wildfly/wildfly
@Override
public final AuthenticationMechanismException mechProblemDuringCryptResultIsNull() {
final AuthenticationMechanismException result = new AuthenticationMechanismException(String.format(getLoggingLocale(), mechProblemDuringCryptResultIsNull$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String mechProblemDuringDecryptResultIsNull = "ELY05171: Problem during decrypt: The decrypted result is null. The input data has a length of zero or too short to result in a new block.";