ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/security/auth/message/ServerAuth.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/security/auth/message/ServerAuth.java
Status
scanned
Type
file
Name
ServerAuth.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2740 (2.7 KB)
MD5
ae12ac626aa76a657bb204ebe8e6731d
SHA1
6e7f0cbc360c86185d0c2d1232f9803d89d2c67d
SHA256
c430b1c972bc5d459b233298d97d59d1dad8ae9c70481280b4506dd4b33d63d5
SHA512

      
    
SHA1_git
c50950af609bd4568b57e461bb927b23dd99535a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ServerAuth.java | 2.7 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 jakarta.security.auth.message; import javax.security.auth.Subject; public interface ServerAuth { /** * Validate the request. * * @param messageInfo The associated request and response * @param clientSubject The subject that represents the source of the request * @param serviceSubject The subject that represents the recipient of the request * * @return An AuthStatus instance that represents the result of the validation * * @throws AuthException If a failure occurred in a manner that prevented the failure from being communicated via * messageInfo */ AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws AuthException; /** * Secure (authenticate) the response. * * @param messageInfo The associated request and response * @param serviceSubject The subject that represents the source of the response * * @return An AuthStatus instance that represents the result of the authentication * * @throws AuthException If a failure occurred in a manner that prevented the failure from being communicated via * messageInfo */ default AuthStatus secureResponse(MessageInfo messageInfo, Subject serviceSubject) throws AuthException { return AuthStatus.SUCCESS; } /** * Remove principals and/or credentials from the subject that were previously added by this authentication * mechanism. * * @param messageInfo The associated request and response * @param subject The subject to clean * * @throws AuthException If a failure occurred */ default void cleanSubject(MessageInfo messageInfo, Subject subject) throws AuthException { // NO-OP } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
38.76
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9