Edit C:\apache-tomcat-7.0.69\webapps\sword\WEB-INF\classes\org\dspace\sword\SWORDAuthenticator.class
???? 31 ?% &' &( ?) *+ *, ?- ./ .0 ?1 23 24 ?5 26 ?7 28 ?9:;<= %> %? @ A B CD ?E ?FGHIJ K L MD ?N MO MP ?Q CO CP CR SD ?T SO SP SRU VWXY Z[ ?\] ^_`ab cdef gh ^ij C% ?k l Cm:nopqrqst Lu vw x ^y Cz C{|}|~ C ????? "????? ^?? ? ?? ??? ??? C? C????? m? C? C? ?? L? L?? tu ?Wo? C?? y%??????o? |? ???????? ???? ?? ?? ??? ^?? log Lorg/apache/log4j/Logger; authenticationService 7Lorg/dspace/authenticate/service/AuthenticationService; authorizeService /Lorg/dspace/authorize/service/AuthorizeService; ePersonService +Lorg/dspace/eperson/service/EPersonService; communityService -Lorg/dspace/content/service/CommunityService; collectionService .Lorg/dspace/content/service/CollectionService; itemService (Lorg/dspace/content/service/ItemService; <init> ()V Code LineNumberTable LocalVariableTable this %Lorg/dspace/sword/SWORDAuthenticator; authenticates @(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;)Z context Lorg/dspace/core/Context; un Ljava/lang/String; pw auth I StackMapTable constructContext -(Ljava/lang/String;)Lorg/dspace/core/Context; ip Exceptions authenticate M(Lorg/purl/sword/base/ServiceDocumentRequest;)Lorg/dspace/sword/SWORDContext; sc Lorg/dspace/sword/SWORDContext; e Ljava/lang/Exception; request ,Lorg/purl/sword/base/ServiceDocumentRequest;??=?j J(Lorg/purl/sword/base/AtomDocumentRequest;)Lorg/dspace/sword/SWORDContext; )Lorg/purl/sword/base/AtomDocumentRequest;? c(Lorg/dspace/core/Context;Lorg/purl/sword/base/AtomDocumentRequest;)Lorg/dspace/sword/SWORDContext; f(Lorg/dspace/core/Context;Lorg/purl/sword/base/ServiceDocumentRequest;)Lorg/dspace/sword/SWORDContext; >(Lorg/purl/sword/base/Deposit;)Lorg/dspace/sword/SWORDContext; deposit Lorg/purl/sword/base/Deposit;? W(Lorg/dspace/core/Context;Lorg/purl/sword/base/Deposit;)Lorg/dspace/sword/SWORDContext; ?(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/dspace/sword/SWORDContext; group Lorg/dspace/eperson/Group; groups Ljava/util/List; oboContext epObo Lorg/dspace/eperson/EPerson; ep authenticated Z Ljava/sql/SQLException; obo mediated LocalVariableTypeTable ,Ljava/util/List<Lorg/dspace/eperson/Group;>;????? canSubmit `(Lorg/dspace/sword/SWORDService;Lorg/purl/sword/base/Deposit;Lorg/dspace/content/DSpaceObject;)Z swordService Lorg/dspace/sword/SWORDService; dso !Lorg/dspace/content/DSpaceObject; swordContext submit isUserAdmin "(Lorg/dspace/sword/SWORDContext;)Z isOnBehalfOfAdmin onBehalfOf isUserInGroup <(Lorg/dspace/sword/SWORDContext;Lorg/dspace/eperson/Group;)Z isOnBehalfOfInGroup isInGroup 9(Lorg/dspace/eperson/Group;Lorg/dspace/eperson/EPerson;)Z group1 eperson eps .Ljava/util/List<Lorg/dspace/eperson/EPerson;>; getAllowedCommunities 1(Lorg/dspace/sword/SWORDContext;)Ljava/util/List; authAllowed oboAllowed comm Lorg/dspace/content/Community; allowed comms 0Ljava/util/List<Lorg/dspace/content/Community;>;? Signature Q(Lorg/dspace/sword/SWORDContext;)Ljava/util/List<Lorg/dspace/content/Community;>; getCommunities O(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/Community;)Ljava/util/List; community o(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/Community;)Ljava/util/List<Lorg/dspace/content/Community;>; getAllowedCollections R(Lorg/dspace/sword/SWORDContext;)Ljava/util/List<Lorg/dspace/content/Collection;>; col Lorg/dspace/content/Collection; authContext cols 1Ljava/util/List<Lorg/dspace/content/Collection;>;? p(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/Community;)Ljava/util/List<Lorg/dspace/content/Collection;>; getAllowedItems P(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/Collection;)Ljava/util/List; bundle Lorg/dspace/content/Bundle; write add item Lorg/dspace/content/Item; bundles ii Ljava/util/Iterator; collection -Ljava/util/List<Lorg/dspace/content/Bundle;>; +Ljava/util/List<Lorg/dspace/content/Item;>; /Ljava/util/Iterator<Lorg/dspace/content/Item;>;?? k(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/Collection;)Ljava/util/List<Lorg/dspace/content/Item;>; canSubmitTo A(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/Collection;)Z ;(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/Item;)Z C(Lorg/dspace/sword/SWORDContext;Lorg/dspace/content/DSpaceObject;)Z <clinit> SourceFile SWORDAuthenticator.java ? ?????? ? ?????? ? ?????? ? ?????? ? ??? ? ??? ? ?? ?? ,org/dspace/authenticate/AuthenticationMethod org/dspace/core/Context java/lang/StringBuilder session_id=0:ip_addr=????????? ? ? ? ? "org/purl/sword/base/SWORDException 'org/purl/sword/base/SWORDErrorException java/lang/RuntimeException 0org/purl/sword/base/SWORDAuthenticationException??? ?? ? ????? ? ???? ? ? ??? sword-server on-behalf-of.enable??? ? ? =Attempted mediated deposit on service not configured to do so??? org/purl/sword/base/ErrorCodes 3http://purl.org/net/sword/error/MediationNotAllowed 1Mediated deposit to this service is not permitted ?? sword_authenticate username= ,on_behalf_of=????? org/dspace/sword/SWORDContext ? ??????????????? org/dspace/eperson/Group?? Adding Special Group id=?? ?? 2http://purl.org/net/sword/error/TargetOwnerUnknown &unable to identify on-behalf-of user: sword_unable_to_set_user (Unable to authenticate the supplied used ?? sword_unable_to_set_on_behalf_of -Unable to authenticate the onBehalfOf account java/sql/SQLException caught exception: ? :There was a problem accessing the repository user database ?! *User is authorised to submit to collection? .User is not authorised to submit to collection? Caught exception: %org/dspace/sword/DSpaceSWORDException ??? ? ? org/dspace/eperson/EPerson? java/util/ArrayList!"# org/dspace/content/Community org/dspace/core/Constants$%?& '() org/dspace/content/Collection*+, org/dspace/content/Item- org/dspace/content/Bundle ORIGINAL.? #org/dspace/sword/SWORDAuthenticator/0 java/lang/Object *org/purl/sword/base/ServiceDocumentRequest java/lang/Exception 'org/purl/sword/base/AtomDocumentRequest org/purl/sword/base/Deposit java/lang/String java/util/List java/util/Iterator :org/dspace/authenticate/factory/AuthenticateServiceFactory getInstance >()Lorg/dspace/authenticate/factory/AuthenticateServiceFactory; getAuthenticationService 9()Lorg/dspace/authenticate/service/AuthenticationService; 4org/dspace/authorize/factory/AuthorizeServiceFactory 8()Lorg/dspace/authorize/factory/AuthorizeServiceFactory; getAuthorizeService 1()Lorg/dspace/authorize/service/AuthorizeService; 0org/dspace/eperson/factory/EPersonServiceFactory 4()Lorg/dspace/eperson/factory/EPersonServiceFactory; getEPersonService -()Lorg/dspace/eperson/service/EPersonService; 0org/dspace/content/factory/ContentServiceFactory 4()Lorg/dspace/content/factory/ContentServiceFactory; getCommunityService /()Lorg/dspace/content/service/CommunityService; getCollectionService 0()Lorg/dspace/content/service/CollectionService; getItemService *()Lorg/dspace/content/service/ItemService; 5org/dspace/authenticate/service/AuthenticationService y(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/http/HttpServletRequest;)I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; setExtraLogInfo (Ljava/lang/String;)V getIPAddress isValid ()Z abort getUsername getPassword getOnBehalfOf equals (Ljava/lang/Object;)Z $org/dspace/core/ConfigurationManager getBooleanProperty '(Ljava/lang/String;Ljava/lang/String;)Z org/apache/log4j/Logger error (Ljava/lang/Object;)V '(Ljava/lang/String;Ljava/lang/String;)V org/dspace/core/LogManager getHeader Q(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; info getCurrentUser ()Lorg/dspace/eperson/EPerson; setAuthenticated (Lorg/dspace/eperson/EPerson;)V getSpecialGroups R(Lorg/dspace/core/Context;Ljavax/servlet/http/HttpServletRequest;)Ljava/util/List; iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; getID ()Ljava/util/UUID; setSpecialGroup (Ljava/util/UUID;)V -(Ljava/lang/Object;)Ljava/lang/StringBuilder; debug setAuthenticatorContext (Lorg/dspace/core/Context;)V setContext )org/dspace/eperson/service/EPersonService findByEmail I(Lorg/dspace/core/Context;Ljava/lang/String;)Lorg/dspace/eperson/EPerson; findByNetid setOnBehalfOf setCurrentUser *(Ljava/lang/Object;Ljava/lang/Throwable;)V *(Ljava/lang/String;Ljava/lang/Exception;)V org/dspace/sword/SWORDService getSwordContext !()Lorg/dspace/sword/SWORDContext; message getAuthenticated getAuthenticatorContext ()Lorg/dspace/core/Context; -org/dspace/authorize/service/AuthorizeService isAdmin (Lorg/dspace/core/Context;)Z (Ljava/lang/Throwable;)V getOnBehalfOfContext getMembers ()Ljava/util/List; getMemberGroups java/util/UUID isEmpty getContext +org/dspace/content/service/CommunityService findAllTop +(Lorg/dspace/core/Context;)Ljava/util/List; authorizeActionBoolean >(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;I)Z getSubcommunities ,org/dspace/content/service/CollectionService findAuthorized J(Lorg/dspace/core/Context;Lorg/dspace/content/Community;I)Ljava/util/List; &org/dspace/content/service/ItemService findByCollection N(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;)Ljava/util/Iterator; getBundles getName getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? A*? *? ? ? *? ? ? *? ? ? *? ? ? *? ? ? *? ? ? ? ? : , 1 2 4 5 7 8 "