ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/api/UserToRolesMapper.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/api/UserToRolesMapper.java
Status
scanned
Type
file
Name
UserToRolesMapper.java
Extension
.java
Programming language
Java
Mime type
text/x-java
File type
Java source, ASCII text
Tag

      
    
Rootfs path

      
    
Size
1079 (1.1 KB)
MD5
d786be285aacabc4c0fdcdb16e831316
SHA1
3f5b83d4e6eed8d1cd548416376c9aa580b2876e
SHA256
4ebc39142abcad2e832d26382a6cb51f9cd856451ff42b5d3bb9e789e47146c3
SHA512

      
    
SHA1_git
9fe0f5c7c1d3cca9865ffcd1c5a7ec881c5f08ee
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
UserToRolesMapper.java | 1.1 KB |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: Alessandro Ventura */ package org.h2.api; import java.util.Collection; import org.h2.security.auth.AuthenticationException; import org.h2.security.auth.AuthenticationInfo; import org.h2.security.auth.Configurable; /** * A class that implement this interface can be used during authentication to * map external users to database roles. * <p> * <b>This feature is experimental and subject to change</b> * </p> */ public interface UserToRolesMapper extends Configurable { /** * Map user identified by authentication info to a set of granted roles. * * @param authenticationInfo * authentication information * @return list of roles to be assigned to the user temporary * @throws AuthenticationException * on authentication exception */ Collection<String> mapUserToRoles(AuthenticationInfo authenticationInfo) throws AuthenticationException; }
Detected license expression
mpl-2.0 AND epl-1.0
Detected license expression (SPDX)
MPL-2.0 AND EPL-1.0
Percentage of license text
7.69
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mpl_2_0_and_epl_1_0-796bf8d7-f485-3520-923d-e6a4b1ecd2f3 mpl-2.0 AND epl-1.0 MPL-2.0 AND EPL-1.0
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220