本文整理了Java中org.springframework.security.access.AuthorizationServiceException.<init>()
方法的一些代码示例,展示了AuthorizationServiceException.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthorizationServiceException.<init>()
方法的具体详情如下:
包路径:org.springframework.security.access.AuthorizationServiceException
类名称:AuthorizationServiceException
方法名:<init>
[英]Constructs an AuthorizationServiceException
with the specified message.
[中]使用指定的消息构造一个AuthorizationServiceException
。
代码示例来源:origin: spring-projects/spring-security
protected Object getDomainObjectInstance(MethodInvocation invocation) {
Object[] args;
Class<?>[] params;
params = invocation.getMethod().getParameterTypes();
args = invocation.getArguments();
for (int i = 0; i < params.length; i++) {
if (processDomainObjectClass.isAssignableFrom(params[i])) {
return args[i];
}
}
throw new AuthorizationServiceException("MethodInvocation: " + invocation
+ " did not provide any argument of type: " + processDomainObjectClass);
}
代码示例来源:origin: org.springframework.security/spring-security-core
protected Object getDomainObjectInstance(MethodInvocation invocation) {
Object[] args;
Class<?>[] params;
params = invocation.getMethod().getParameterTypes();
args = invocation.getArguments();
for (int i = 0; i < params.length; i++) {
if (processDomainObjectClass.isAssignableFrom(params[i])) {
return args[i];
}
}
throw new AuthorizationServiceException("MethodInvocation: " + invocation
+ " did not provide any argument of type: " + processDomainObjectClass);
}
代码示例来源:origin: spring-projects/spring-security
throw new AuthorizationServiceException("Object of class '"
+ domainObject.getClass()
+ "' does not provide the requested internalMethod: "
logger.debug("IllegalAccessException", iae);
throw new AuthorizationServiceException(
"Problem invoking internalMethod: " + internalMethod
+ " for object: " + domainObject);
logger.debug("InvocationTargetException", ite);
throw new AuthorizationServiceException(
"Problem invoking internalMethod: " + internalMethod
+ " for object: " + domainObject);
代码示例来源:origin: spring-projects/spring-security
throw new AuthorizationServiceException(
"A Collection or an array (or null) was required as the "
+ "returnedObject, but the returnedObject was: "
代码示例来源:origin: org.springframework.security/org.springframework.security.core
protected Object getDomainObjectInstance(MethodInvocation invocation) {
Object[] args;
Class<?>[] params;
params = invocation.getMethod().getParameterTypes();
args = invocation.getArguments();
for (int i = 0; i < params.length; i++) {
if (processDomainObjectClass.isAssignableFrom(params[i])) {
return args[i];
}
}
throw new AuthorizationServiceException("MethodInvocation: " + invocation
+ " did not provide any argument of type: " + processDomainObjectClass);
}
代码示例来源:origin: apache/servicemix-bundles
protected Object getDomainObjectInstance(MethodInvocation invocation) {
Object[] args;
Class<?>[] params;
params = invocation.getMethod().getParameterTypes();
args = invocation.getArguments();
for (int i = 0; i < params.length; i++) {
if (processDomainObjectClass.isAssignableFrom(params[i])) {
return args[i];
}
}
throw new AuthorizationServiceException("MethodInvocation: " + invocation
+ " did not provide any argument of type: " + processDomainObjectClass);
}
代码示例来源:origin: org.ikasan/console-jar
throw new AuthorizationServiceException("A Collection was required as the "
+ "returnedObject, but the returnedObject was [" + returnedObject + "]");
代码示例来源:origin: org.ikasan/console-jar
throw new AuthorizationServiceException("A Collection was required as the " + "returnedObject, but the returnedObject was [" + returnedObject
+ "]");
代码示例来源:origin: sk.seges.acris/acris-security-spring
protected Object[] getDomainObjectInstances(Object secureObject) {
List<Object> result = new ArrayList<Object>();
Object[] args;
Class<?>[] params;
if (secureObject instanceof MethodInvocation) {
MethodInvocation invocation = (MethodInvocation) secureObject;
params = invocation.getMethod().getParameterTypes();
args = invocation.getArguments();
} else {
JoinPoint jp = (JoinPoint) secureObject;
params = ((CodeSignature) jp.getStaticPart().getSignature()).getParameterTypes();
args = jp.getArgs();
}
for (int i = 0; i < params.length; i++) {
if (getProcessDomainObjectClass().isAssignableFrom(params[i])) {
result.add(args[i]);
}
}
if (result.size() == 0) {
throw new AuthorizationServiceException("Secure object: " + secureObject
+ " did not provide any argument of type: " + getProcessDomainObjectClass());
}
return result.toArray(new Object[0]);
}
代码示例来源:origin: sk.seges.acris/acris-security-spring
domainObject = method.invoke(domainObject, new Object[0]);
} catch (NoSuchMethodException nsme) {
throw new AuthorizationServiceException("Object of class '" + domainObject.getClass()
+ "' does not provide the requested internalMethod: " + internalMethod);
} catch (IllegalAccessException iae) {
logger.debug("IllegalAccessException", iae);
throw new AuthorizationServiceException("Problem invoking internalMethod: " + internalMethod
+ " for object: " + domainObject);
} catch (InvocationTargetException ite) {
logger.debug("InvocationTargetException", ite);
throw new AuthorizationServiceException("Problem invoking internalMethod: " + internalMethod
+ " for object: " + domainObject);
代码示例来源:origin: sk.seges.acris/acris-security-spring
throw new AuthorizationServiceException("Secure object: " + secureObject
+ " did not provide any argument of type: " + getProcessDomainObjectClass());
代码示例来源:origin: apache/servicemix-bundles
throw new AuthorizationServiceException("Object of class '"
+ domainObject.getClass()
+ "' does not provide the requested internalMethod: "
logger.debug("IllegalAccessException", iae);
throw new AuthorizationServiceException(
"Problem invoking internalMethod: " + internalMethod
+ " for object: " + domainObject);
logger.debug("InvocationTargetException", ite);
throw new AuthorizationServiceException(
"Problem invoking internalMethod: " + internalMethod
+ " for object: " + domainObject);
代码示例来源:origin: apache/servicemix-bundles
throw new AuthorizationServiceException(
"A Collection or an array (or null) was required as the "
+ "returnedObject, but the returnedObject was: "
代码示例来源:origin: alien4cloud/alien4cloud
throw new AuthorizationServiceException(
"Creating a new version of an application from the version of another application is not authorized.");
代码示例来源:origin: alien4cloud/alien4cloud
throw new AuthorizationServiceException("Creating a new version of an application from the version of another application is not authorized.");
代码示例来源:origin: alien4cloud/alien4cloud
throw new AuthorizationServiceException("It is not authorize to change an application with a wrong application id: request application id ["
+ applicationId + "] version application id: [" + applicationVersion.getApplicationId() + "]");
内容来源于网络,如有侵权,请联系作者删除!