本文整理了Java中java.lang.SecurityException.setStackTrace()
方法的一些代码示例,展示了SecurityException.setStackTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SecurityException.setStackTrace()
方法的具体详情如下:
包路径:java.lang.SecurityException
类名称:SecurityException
方法名:setStackTrace
暂无
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException notAllowedContainerManaged(final String methodName) {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), notAllowedContainerManaged$str(), methodName));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
}
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException authenticationFailedEvidenceVerification() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), authenticationFailedEvidenceVerification$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String authenticationFailedAuthorization = "ELY01152: Authorization Check Failed.";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException unknownContext() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), unknownContext$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String unexpectedActionCharacter = "WFSM000004: Unexpected character '%s' at offset %d of '%s'";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException permissionCheckFailed(final Permission permission, final PermissionVerifier permissionVerifier) {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), permissionCheckFailed$str(), permission, permissionVerifier));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String publicKeyParseError = "ELY03023: PublicKey parse error";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException readOnlyPermissionCollection() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), readOnlyPermissionCollection$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String invalidPermissionType = "COM00301: Invalid permission type (expected %s, actual value was %s)";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException realmNotFound(final String name) {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), realmNotFound$str(), name));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String failureCallingSecurityRealm = "WFLYSEC0031: Failure calling CallbackHandler '%s'";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException permissionCollectionMustBeReadOnly() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), permissionCollectionMustBeReadOnly$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String permissionClassMissing = "ELY03015: Could not load permission class \"%s\"";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException noPermission(final String user, final Permission permission) {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), noPermission$str(), user, permission));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String setTimeoutFailed = "WFTXN0089: Failed to configure transaction timeout of %d";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException cannotAddToReadOnlyPermissionCollection() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), cannotAddToReadOnlyPermissionCollection$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String cannotBeNull = "WFLYNAM0015: %s cannot be null.";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException securityException(final Throwable t) {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), securityException$str()), t);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String vaultReaderException = "WFLYSEC0017: Vault Reader Exception:";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException invalidUserException() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), invalidUserException$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String securityManagementNotInjected = "WFLYSEC0028: Security Management not injected";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException unableToConstructProvider(final String className, final Throwable cause) {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), unableToConstructProvider$str(), className), cause);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String configAlreadyRegistered = "ELY01168: JASPIC Configuration for messageLayer=%s, and applicationContext=%s already registered.";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException propReadForbidden() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), propReadForbidden$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
@Override
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException secMgrChange() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), secMgrChange$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String unknownContext = "WFSM000003: Unknown security context type";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException executionSubjectNotSetInHandler() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), executionSubjectNotSetInHandler$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String invalidCallbackSecurityDomain = "WFLYJCA0108: Supplied callback doesn't contain a security domain reference";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException authenticationFailedAuthorization() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), authenticationFailedAuthorization$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String directLdapVerificationFailed = "ELY01153: Direct LDAP verification failed with DN [%s] and absolute DN [%s]";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException ejbAuthenticationRequired() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), ejbAuthenticationRequired$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
@Override
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException peerSecurityException() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), peerSecurityException$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String protocolError = "WFTXN0014: An unexpected protocol error occurred";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException vaultNotInitializedException() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), vaultNotInitializedException$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String invalidUserException = "WFLYSEC0027: Invalid User";
代码示例来源:origin: wildfly/wildfly
@Override
public final SecurityException securityManagementNotInjected() {
final SecurityException result = new SecurityException(String.format(getLoggingLocale(), securityManagementNotInjected$str()));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String realmNotFound = "WFLYSEC0029: Security realm '%s' not found.";
内容来源于网络,如有侵权,请联系作者删除!