Skip to content

Commit

Permalink
com.usthe.sureness rename org.dromara.sureness
Browse files Browse the repository at this point in the history
  • Loading branch information
shimingxy committed Jul 19, 2024
1 parent 826f1e9 commit b8d0386
Show file tree
Hide file tree
Showing 252 changed files with 1,381 additions and 1,320 deletions.
6 changes: 3 additions & 3 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>com.usthe.sureness</groupId>
<groupId>org.dromara.sureness</groupId>
<artifactId>sureness-core</artifactId>
<version>1.1.0</version>
<packaging>jar</packaging>
Expand All @@ -27,8 +27,8 @@
<developer>
<name>tomsun28</name>
<email>[email protected]</email>
<organization>usthe</organization>
<organizationUrl>usthe.com</organizationUrl>
<organization>dromara</organization>
<organizationUrl>dromara.org</organizationUrl>
</developer>
</developers>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package com.usthe.sureness;
package org.dromara.sureness;

import com.usthe.sureness.matcher.DefaultPathRoleMatcher;
import com.usthe.sureness.matcher.PathTreeProvider;
import com.usthe.sureness.mgt.SurenessSecurityManager;
import com.usthe.sureness.processor.DefaultProcessorManager;
import com.usthe.sureness.processor.Processor;
import com.usthe.sureness.processor.support.DigestProcessor;
import com.usthe.sureness.processor.support.JwtProcessor;
import com.usthe.sureness.processor.support.NoneProcessor;
import com.usthe.sureness.processor.support.PasswordProcessor;
import com.usthe.sureness.provider.SurenessAccountProvider;
import com.usthe.sureness.provider.ducument.DocumentAccountProvider;
import com.usthe.sureness.provider.ducument.DocumentPathTreeProvider;
import com.usthe.sureness.subject.SubjectCreate;
import com.usthe.sureness.subject.SubjectFactory;
import com.usthe.sureness.subject.SurenessSubjectFactory;
import com.usthe.sureness.subject.creater.*;
import org.dromara.sureness.matcher.DefaultPathRoleMatcher;
import org.dromara.sureness.matcher.PathTreeProvider;
import org.dromara.sureness.mgt.SurenessSecurityManager;
import org.dromara.sureness.processor.DefaultProcessorManager;
import org.dromara.sureness.processor.Processor;
import org.dromara.sureness.processor.support.DigestProcessor;
import org.dromara.sureness.processor.support.JwtProcessor;
import org.dromara.sureness.processor.support.NoneProcessor;
import org.dromara.sureness.processor.support.PasswordProcessor;
import org.dromara.sureness.provider.SurenessAccountProvider;
import org.dromara.sureness.provider.ducument.DocumentAccountProvider;
import org.dromara.sureness.provider.ducument.DocumentPathTreeProvider;
import org.dromara.sureness.subject.SubjectCreate;
import org.dromara.sureness.subject.SubjectFactory;
import org.dromara.sureness.subject.SurenessSubjectFactory;
import org.dromara.sureness.subject.creater.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.usthe.sureness.handler;

import com.usthe.sureness.subject.SubjectSum;
import com.usthe.sureness.util.SurenessConstant;
package org.dromara.sureness.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.dromara.sureness.subject.SubjectSum;
import org.dromara.sureness.util.SurenessConstant;

import static java.util.Objects.isNull;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.usthe.sureness.handler;
package org.dromara.sureness.handler;

import com.usthe.sureness.subject.SubjectSum;
import org.dromara.sureness.subject.SubjectSum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.usthe.sureness.handler;
package org.dromara.sureness.handler;

import com.usthe.sureness.subject.SubjectSum;
import org.dromara.sureness.subject.SubjectSum;

/**
* the handler process after auth success
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.usthe.sureness.matcher;
package org.dromara.sureness.matcher;

import com.usthe.sureness.matcher.util.TirePathTree;
import com.usthe.sureness.mgt.SurenessNoInitException;
import com.usthe.sureness.subject.Subject;
import org.dromara.sureness.matcher.util.TirePathTree;
import org.dromara.sureness.mgt.SurenessNoInitException;
import org.dromara.sureness.subject.Subject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.matcher;
package org.dromara.sureness.matcher;

import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.usthe.sureness.matcher;
package org.dromara.sureness.matcher;

import com.usthe.sureness.processor.exception.ExtSurenessException;
import org.dromara.sureness.processor.exception.ExtSurenessException;

/**
* datasource load exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.usthe.sureness.matcher;
package org.dromara.sureness.matcher;

import com.usthe.sureness.mgt.SurenessNoInitException;
import com.usthe.sureness.subject.Subject;
import org.dromara.sureness.mgt.SurenessNoInitException;
import org.dromara.sureness.subject.Subject;

/**
* path-role matcher interface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.matcher.util;
package org.dromara.sureness.matcher.util;


import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.usthe.sureness.mgt;

import com.usthe.sureness.processor.exception.UnsupportedSubjectException;
import com.usthe.sureness.subject.SubjectSum;
import com.usthe.sureness.subject.Subject;
import com.usthe.sureness.processor.exception.BaseSurenessException;
package org.dromara.sureness.mgt;

import java.util.List;

import org.dromara.sureness.processor.exception.BaseSurenessException;
import org.dromara.sureness.processor.exception.UnsupportedSubjectException;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.SubjectSum;

/**
* Authentication authorization entrance interface
* @author tomsun28
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.usthe.sureness.mgt;
package org.dromara.sureness.mgt;


import com.usthe.sureness.processor.exception.ExtSurenessException;
import org.dromara.sureness.processor.exception.ExtSurenessException;

/**
* sureness not init exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.usthe.sureness.mgt;

import com.usthe.sureness.handler.HandlerManager;
import com.usthe.sureness.matcher.TreePathRoleMatcher;
import com.usthe.sureness.processor.ProcessorManager;
import com.usthe.sureness.processor.exception.UnsupportedSubjectException;
import com.usthe.sureness.subject.SubjectSum;
import com.usthe.sureness.subject.Subject;
import com.usthe.sureness.subject.SubjectFactory;
import com.usthe.sureness.processor.exception.BaseSurenessException;
package org.dromara.sureness.mgt;

import org.dromara.sureness.handler.HandlerManager;
import org.dromara.sureness.matcher.TreePathRoleMatcher;
import org.dromara.sureness.processor.ProcessorManager;
import org.dromara.sureness.processor.exception.BaseSurenessException;
import org.dromara.sureness.processor.exception.UnsupportedSubjectException;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.SubjectFactory;
import org.dromara.sureness.subject.SubjectSum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.usthe.sureness.processor;

import com.usthe.sureness.processor.exception.SurenessAuthenticationException;
import com.usthe.sureness.processor.exception.SurenessAuthorizationException;
import com.usthe.sureness.processor.exception.UnauthorizedException;
import com.usthe.sureness.subject.SubjectSum;
import com.usthe.sureness.subject.Subject;
package org.dromara.sureness.processor;

import java.util.List;

import org.dromara.sureness.processor.exception.SurenessAuthenticationException;
import org.dromara.sureness.processor.exception.SurenessAuthorizationException;
import org.dromara.sureness.processor.exception.UnauthorizedException;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.SubjectSum;

/**
* abstract processor
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.usthe.sureness.processor;
package org.dromara.sureness.processor;

import com.usthe.sureness.mgt.SurenessNoInitException;
import com.usthe.sureness.processor.exception.ProcessorNotFoundException;
import com.usthe.sureness.processor.exception.SurenessAuthenticationException;
import com.usthe.sureness.processor.exception.SurenessAuthorizationException;
import com.usthe.sureness.subject.SubjectSum;
import com.usthe.sureness.subject.Subject;
import org.dromara.sureness.mgt.SurenessNoInitException;
import org.dromara.sureness.processor.exception.ProcessorNotFoundException;
import org.dromara.sureness.processor.exception.SurenessAuthenticationException;
import org.dromara.sureness.processor.exception.SurenessAuthorizationException;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.SubjectSum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.usthe.sureness.processor;
package org.dromara.sureness.processor;

import com.usthe.sureness.processor.exception.SurenessAuthenticationException;
import com.usthe.sureness.processor.exception.SurenessAuthorizationException;
import com.usthe.sureness.subject.SubjectSum;
import com.usthe.sureness.subject.Subject;
import org.dromara.sureness.processor.exception.SurenessAuthenticationException;
import org.dromara.sureness.processor.exception.SurenessAuthorizationException;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.SubjectSum;

/**
* processor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.usthe.sureness.processor;
package org.dromara.sureness.processor;

import com.usthe.sureness.subject.SubjectSum;
import com.usthe.sureness.subject.Subject;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.SubjectSum;

/**
* processor manager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* sureness basic exception, other exceptions inherit this exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception: Disable lock account exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception: Too many attempts after regular authentication failure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception: Expired certificate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Extended Sureness exception.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception: Bad credentials
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* exception for digest auth
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception: there is no processor support this subject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authorization exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authorization exception: No permission to access the resource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception: Unknown account exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.usthe.sureness.processor.exception;
package org.dromara.sureness.processor.exception;

/**
* Authentication exception: Can not support this request
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package com.usthe.sureness.processor.support;
package org.dromara.sureness.processor.support;

import com.usthe.sureness.processor.BaseProcessor;
import com.usthe.sureness.processor.exception.DisabledAccountException;
import com.usthe.sureness.processor.exception.ExcessiveAttemptsException;
import com.usthe.sureness.processor.exception.IncorrectCredentialsException;
import com.usthe.sureness.processor.exception.UnknownAccountException;
import com.usthe.sureness.processor.exception.SurenessAuthenticationException;
import com.usthe.sureness.processor.exception.NeedDigestInfoException;
import com.usthe.sureness.provider.SurenessAccount;
import com.usthe.sureness.provider.SurenessAccountProvider;
import com.usthe.sureness.subject.Subject;
import com.usthe.sureness.subject.support.DigestSubject;
import org.dromara.sureness.processor.BaseProcessor;
import org.dromara.sureness.processor.exception.DisabledAccountException;
import org.dromara.sureness.processor.exception.ExcessiveAttemptsException;
import org.dromara.sureness.processor.exception.IncorrectCredentialsException;
import org.dromara.sureness.processor.exception.NeedDigestInfoException;
import org.dromara.sureness.processor.exception.SurenessAuthenticationException;
import org.dromara.sureness.processor.exception.UnknownAccountException;
import org.dromara.sureness.provider.SurenessAccount;
import org.dromara.sureness.provider.SurenessAccountProvider;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.support.DigestSubject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
package com.usthe.sureness.processor.support;
package org.dromara.sureness.processor.support;

import com.usthe.sureness.processor.BaseProcessor;
import com.usthe.sureness.processor.exception.ExpiredCredentialsException;
import com.usthe.sureness.processor.exception.IncorrectCredentialsException;
import com.usthe.sureness.processor.exception.SurenessAuthenticationException;
import com.usthe.sureness.subject.PrincipalMap;
import com.usthe.sureness.subject.Subject;
import com.usthe.sureness.subject.support.JwtSubject;
import com.usthe.sureness.subject.support.SinglePrincipalMap;
import com.usthe.sureness.util.JsonWebTokenUtil;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.MalformedJwtException;
import io.jsonwebtoken.security.SignatureException;
import io.jsonwebtoken.UnsupportedJwtException;

import org.dromara.sureness.processor.BaseProcessor;
import org.dromara.sureness.processor.exception.ExpiredCredentialsException;
import org.dromara.sureness.processor.exception.IncorrectCredentialsException;
import org.dromara.sureness.processor.exception.SurenessAuthenticationException;
import org.dromara.sureness.subject.PrincipalMap;
import org.dromara.sureness.subject.Subject;
import org.dromara.sureness.subject.support.JwtSubject;
import org.dromara.sureness.subject.support.SinglePrincipalMap;
import org.dromara.sureness.util.JsonWebTokenUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Loading

0 comments on commit b8d0386

Please sign in to comment.